Skip to content
Snippets Groups Projects
Commit a61f8794 authored by Sean Bright's avatar Sean Bright
Browse files

This was bogus, need to find a better way.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e41a7c3d
No related branches found
No related tags found
No related merge requests found
...@@ -136,25 +136,25 @@ static int tds_log(struct ast_cdr *cdr) ...@@ -136,25 +136,25 @@ static int tds_log(struct ast_cdr *cdr)
} }
erc = dbfcmd(settings->dbproc, erc = dbfcmd(settings->dbproc,
"INSERT INTO \"%s\" " "INSERT INTO %s "
"(" "("
"\"accountcode\", " "accountcode, "
"\"src\", " "src, "
"\"dst\", " "dst, "
"\"dcontext\", " "dcontext, "
"\"clid\", " "clid, "
"\"channel\", " "channel, "
"\"dstchannel\", " "dstchannel, "
"\"lastapp\", " "lastapp, "
"\"lastdata\", " "lastdata, "
"\"start\", " "start, "
"\"answer\", " "answer, "
"\"end\", " "[end], "
"\"duration\", " "duration, "
"\"billsec\", " "billsec, "
"\"disposition\", " "disposition, "
"\"amaflags\", " "amaflags, "
"\"uniqueid\"" "uniqueid"
") " ") "
"VALUES " "VALUES "
"(" "("
...@@ -317,7 +317,7 @@ static int mssql_connect(void) ...@@ -317,7 +317,7 @@ static int mssql_connect(void)
goto failed; 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); ast_log(LOG_ERROR, "Unable to build query while verifying the existence of table '%s'\n", settings->table);
goto failed; goto failed;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment