[asterisk-commits] seanbright: trunk r126319 - /trunk/cdr/cdr_tds.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jun 29 08:20:02 CDT 2008


Author: seanbright
Date: Sun Jun 29 08:20:01 2008
New Revision: 126319

URL: http://svn.digium.com/view/asterisk?view=rev&rev=126319
Log:
This was bogus, need to find a better way.

Modified:
    trunk/cdr/cdr_tds.c

Modified: trunk/cdr/cdr_tds.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_tds.c?view=diff&rev=126319&r1=126318&r2=126319
==============================================================================
--- trunk/cdr/cdr_tds.c (original)
+++ trunk/cdr/cdr_tds.c Sun Jun 29 08:20:01 2008
@@ -136,25 +136,25 @@
 	}
 
 	erc = dbfcmd(settings->dbproc,
-		"INSERT INTO \"%s\" "
+		"INSERT INTO %s "
 		"("
-			"\"accountcode\", "
-			"\"src\", "
-			"\"dst\", "
-			"\"dcontext\", "
-			"\"clid\", "
-			"\"channel\", "
-			"\"dstchannel\", "
-			"\"lastapp\", "
-			"\"lastdata\", "
-			"\"start\", "
-			"\"answer\", "
-			"\"end\", "
-			"\"duration\", "
-			"\"billsec\", "
-			"\"disposition\", "
-			"\"amaflags\", "
-			"\"uniqueid\""
+			"accountcode, "
+			"src, "
+			"dst, "
+			"dcontext, "
+			"clid, "
+			"channel, "
+			"dstchannel, "
+			"lastapp, "
+			"lastdata, "
+			"start, "
+			"answer, "
+			"[end], "
+			"duration, "
+			"billsec, "
+			"disposition, "
+			"amaflags, "
+			"uniqueid"
 		") "
 		"VALUES "
 		"("
@@ -317,7 +317,7 @@
 		goto failed;
 	}
 
-	if (dbfcmd(settings->dbproc, "SELECT 1 FROM \"%s\"", settings->table) == FAIL) {
+	if (dbfcmd(settings->dbproc, "SELECT 1 FROM [%s]", settings->table) == FAIL) {
 		ast_log(LOG_ERROR, "Unable to build query while verifying the existence of table '%s'\n", settings->table);
 		goto failed;
 	}




More information about the asterisk-commits mailing list