Summary: | ASTERISK-13008: writesql does not work | ||
Reporter: | Bradley Watkins (marquis) | Labels: | |
Date Opened: | 2008-11-03 13:00:16.000-0600 | Date Closed: | 2008-11-03 14:53:16.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Functions/func_odbc |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
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 ****** ADDITIONAL INFORMATION ****** I can upload a patch if need be, but these are pretty trivial. The first instance is also a problem in the 1.6.1 branch. | ||
Comments: | By: Digium Subversion (svnbot) 2008-11-03 14:50:23.000-0600 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 ASTERISK-13008) Reported by: Marquis ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=154023 By: Digium Subversion (svnbot) 2008-11-03 14:53:15.000-0600 Repository: asterisk Revision: 154024 _U branches/1.6.1/ U branches/1.6.1/funcs/func_odbc.c ------------------------------------------------------------------------ r154024 | tilghman | 2008-11-03 14:53:14 -0600 (Mon, 03 Nov 2008) | 11 lines Recorded merge of revisions 154023 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r154023 | tilghman | 2008-11-03 15:01:30 -0600 (Mon, 03 Nov 2008) | 4 lines Should have passed the string pointer, not the ast_str structure. (closes issue ASTERISK-13008) Reported by: Marquis ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=154024 |