[asterisk-bugs] [Asterisk 0013830]: writesql does not work
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Nov 3 14:50:23 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13830
======================================================================
Reported By: Marquis
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 13830
Category: Functions/func_odbc
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 153983
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-11-03 13:00 CST
Last Modified: 2008-11-03 14:50 CST
======================================================================
Summary: writesql does not work
Description:
Since the change to ast_str for the sql buffers in func_odbc.c, write (and
the new insert in trunk) support does not work as intended.
stmt = ast_odbc_direct_execute(obj, generic_execute, buf);
buf should be buf->str instead
stmt = ast_odbc_direct_execute(obj, generic_execute, insertbuf);
insertbuf should be insertbuf->str
======================================================================
----------------------------------------------------------------------
(0094527) svnbot (reporter) - 2008-11-03 14:50
http://bugs.digium.com/view.php?id=13830#c94527
----------------------------------------------------------------------
Repository: asterisk
Revision: 154023
U trunk/funcs/func_odbc.c
------------------------------------------------------------------------
r154023 | tilghman | 2008-11-03 14:50:22 -0600 (Mon, 03 Nov 2008) | 4
lines
Should have passed the string pointer, not the ast_str structure.
(closes issue http://bugs.digium.com/view.php?id=13830)
Reported by: Marquis
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=154023
Issue History
Date Modified Username Field Change
======================================================================
2008-11-03 14:50 svnbot Checkin
2008-11-03 14:50 svnbot Note Added: 0094527
======================================================================
More information about the asterisk-bugs
mailing list