aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-29 13:20:01 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-29 13:20:01 +0000
commit8530e0fda8b91f4bb7c5b95b2807968f9f4852fa (patch)
tree2e1eeb22042f2482928a9101792d70e8e85640dd /cdr
parent76942ba4d306c45270463cfb3b119f63a76036f8 (diff)
This was bogus, need to find a better way.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126319 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_tds.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c
index 928730898..2f17cac2d 100644
--- a/cdr/cdr_tds.c
+++ b/cdr/cdr_tds.c
@@ -136,25 +136,25 @@ static int tds_log(struct ast_cdr *cdr)
}
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 @@ static int mssql_connect(void)
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;
}