aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-29 16:04:46 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-29 16:04:46 +0000
commit4c8f694d5f017fd37ec83eaa54e81b9c64def6eb (patch)
treedead4ec26468be260d984c412e944ccab27658ef
parente1ce2352385c08a6ea631dcff4ceded863458e0e (diff)
Issue 9415 - No point to getting a diagnostic field if we aren't doing anything with the information.
(Plus, it tends to crash the Postgres ODBC driver.) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59301 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--cdr/cdr_odbc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c
index 7a50bf21d..294738bfb 100644
--- a/cdr/cdr_odbc.c
+++ b/cdr/cdr_odbc.c
@@ -383,7 +383,6 @@ static int odbc_do_query(void)
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;