[asterisk-bugs] [Asterisk 0013830]: writesql does not work

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 3 14:53:15 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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-11-03 13:00 CST
Last Modified:              2008-11-03 14:53 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

====================================================================== 

---------------------------------------------------------------------- 
 (0094528) svnbot (reporter) - 2008-11-03 14:53
 http://bugs.digium.com/view.php?id=13830#c94528 
---------------------------------------------------------------------- 
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 http://bugs.digium.com/view.php?id=13830)
   Reported by: Marquis
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=154024 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-03 14:53 svnbot         Note Added: 0094528                          
======================================================================




More information about the asterisk-bugs mailing list