Esempio n. 1
0
void CfDeleteQuery(CfdbConn *cfdb)
{
    switch (cfdb->type)
    {
    case cfd_mysql:
        CfDeleteMysqlQuery(cfdb);
        break;

    case cfd_postgres:
        CfDeletePostgresqlQuery(cfdb);
        break;

    default:
        CfOut(cf_verbose, "", "There is no SQL database selected");
        break;
    }

    if (cfdb->rowdata)
    {
        free(cfdb->rowdata);
        cfdb->rowdata = NULL;
    }
}
Esempio n. 2
0
File: cf_sql.c Progetto: JarleB/core
void CfDeleteQuery(CfdbConn *cfdb)
{
    switch (cfdb->type)
    {
    case DATABASE_TYPE_MYSQL:
        CfDeleteMysqlQuery(cfdb);
        break;

    case DATABASE_TYPE_POSTGRES:
        CfDeletePostgresqlQuery(cfdb);
        break;

    default:
        Log(LOG_LEVEL_VERBOSE, "There is no SQL database selected");
        break;
    }

    if (cfdb->rowdata)
    {
        free(cfdb->rowdata);
        cfdb->rowdata = NULL;
    }
}