[asterisk-commits] seanbright: branch seanbright/issue13290 r137346 - /team/seanbright/issue1329...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 12 18:52:42 CDT 2008
Author: seanbright
Date: Tue Aug 12 18:52:41 2008
New Revision: 137346
URL: http://svn.digium.com/view/asterisk?view=rev&rev=137346
Log:
This is SQL, not C
Modified:
team/seanbright/issue13290/cdr/cdr_tds.c
Modified: team/seanbright/issue13290/cdr/cdr_tds.c
URL: http://svn.digium.com/view/asterisk/team/seanbright/issue13290/cdr/cdr_tds.c?view=diff&rev=137346&r1=137345&r2=137346
==============================================================================
--- team/seanbright/issue13290/cdr/cdr_tds.c (original)
+++ team/seanbright/issue13290/cdr/cdr_tds.c Tue Aug 12 18:52:41 2008
@@ -94,6 +94,7 @@
static char *hostname = NULL, *dbname = NULL, *dbuser = NULL, *password = NULL, *charset = NULL, *language = NULL;
static char *table = NULL;
+
static int connected = 0;
static int has_userfield = 0;
@@ -488,7 +489,7 @@
}
has_userfield = 1;
- snprintf(query, sizeof(query), "SELECT userfield FROM %s WHERE 1 == 0", table);
+ snprintf(query, sizeof(query), "SELECT userfield FROM %s WHERE 1 = 0", table);
#ifdef FREETDS_PRE_0_62
if ((tds_submit_query(tds, query) != TDS_SUCCEED) || (tds_process_simple_query(tds, &result_type) != TDS_SUCCEED || result_type != TDS_CMD_SUCCEED))
#else
More information about the asterisk-commits
mailing list