[asterisk-commits] tilghman: trunk r59303 - in /trunk: ./
cdr/cdr_odbc.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Mar 29 09:08:18 MST 2007
Author: tilghman
Date: Thu Mar 29 11:08:17 2007
New Revision: 59303
URL: http://svn.digium.com/view/asterisk?view=rev&rev=59303
Log:
Merged revisions 59302 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r59302 | tilghman | 2007-03-29 11:07:05 -0500 (Thu, 29 Mar 2007) | 11 lines
Merged revisions 59301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r59301 | tilghman | 2007-03-29 11:04:46 -0500 (Thu, 29 Mar 2007) | 3 lines
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.)
........
................
Modified:
trunk/ (props changed)
trunk/cdr/cdr_odbc.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/cdr/cdr_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_odbc.c?view=diff&rev=59303&r1=59302&r2=59303
==============================================================================
--- trunk/cdr/cdr_odbc.c (original)
+++ trunk/cdr/cdr_odbc.c Thu Mar 29 11:08:17 2007
@@ -378,17 +378,13 @@
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;
More information about the asterisk-commits
mailing list