diff options
Diffstat (limited to 'cdr/cdr_odbc.c')
-rw-r--r-- | cdr/cdr_odbc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c index 3424dd39c..db93eac55 100644 --- a/cdr/cdr_odbc.c +++ b/cdr/cdr_odbc.c @@ -372,17 +372,13 @@ out: static int odbc_do_query(void) { - SQLINTEGER ODBC_err; int ODBC_res; - short int ODBC_mlen; - char ODBC_msg[200], ODBC_stat[10]; ODBC_res = SQLExecute(ODBC_stmt); if ((ODBC_res != SQL_SUCCESS) && (ODBC_res != SQL_SUCCESS_WITH_INFO)) { if (option_verbose > 10) ast_verbose( VERBOSE_PREFIX_4 "cdr_odbc: Error in Query %d\n", ODBC_res); - SQLGetDiagRec(SQL_HANDLE_DBC, ODBC_con, 1, (unsigned char *)ODBC_stat, &ODBC_err, (unsigned char *)ODBC_msg, 100, &ODBC_mlen); SQLFreeHandle(SQL_HANDLE_STMT, ODBC_stmt); odbc_disconnect(); return -1; |