[svn-commits] tilghman: trunk r154023 - /trunk/funcs/func_odbc.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Nov 3 15:01:31 CST 2008
Author: tilghman
Date: Mon Nov 3 15:01:30 2008
New Revision: 154023
URL: http://svn.digium.com/view/asterisk?view=rev&rev=154023
Log:
Should have passed the string pointer, not the ast_str structure.
(closes issue #13830)
Reported by: Marquis
Modified:
trunk/funcs/func_odbc.c
Modified: trunk/funcs/func_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_odbc.c?view=diff&rev=154023&r1=154022&r2=154023
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Mon Nov 3 15:01:30 2008
@@ -300,7 +300,7 @@
if (!ast_strlen_zero(query->writehandle[dsn])) {
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
if (obj)
- stmt = ast_odbc_direct_execute(obj, generic_execute, buf);
+ stmt = ast_odbc_direct_execute(obj, generic_execute, buf->str);
}
if (stmt) {
status = "SUCCESS";
@@ -316,7 +316,7 @@
if (!ast_strlen_zero(query->writehandle[dsn])) {
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
if (obj) {
- stmt = ast_odbc_direct_execute(obj, generic_execute, insertbuf);
+ stmt = ast_odbc_direct_execute(obj, generic_execute, insertbuf->str);
}
}
if (stmt) {
More information about the svn-commits
mailing list