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; } }
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; } }