Summary: | ASTERISK-13914: [patch] func_odbc not returning expected results | ||
Reporter: | John Hass (john8675309) | Labels: | |
Date Opened: | 2009-04-07 13:56:02 | Date Closed: | 2009-04-08 12:13:22 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Functions/func_odbc |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20090408__bug14848.diff.txt | |
Description: | I am using func_odbc to set an array (or hash it does not matter) in the SVN r186687 it seems to miss the first blank item here is the output: ARRAY(adminpin,operator,conference_exists,max_users,locked,options,conference_type)=smadmin,0,0,Rcawh,,1 in this case adminpin is blank so I would expect the result to be: ,smadmin,0,0,Rcawh,,1 So everything is shifting 1 to the left and adminpin actually contains smadmin on asterisk 1.4 (revision: 145479) ARRAY(adminpin|operator|conference_exists|max_users|locked|options|conference_type)=,smadmin,1,0,0,RLa, The behavior that is expected is gotten. Let me know what I can do to help! | ||
Comments: | By: Tilghman Lesher (tilghman) 2009-04-08 11:43:47 One line patch. Please test and reply back with whether this fixes your issue. By: John Hass (john8675309) 2009-04-08 11:53:36 The patch works great thank you! By: Digium Subversion (svnbot) 2009-04-08 12:08:44 Repository: asterisk Revision: 187050 U trunk/funcs/func_odbc.c ------------------------------------------------------------------------ r187050 | tilghman | 2009-04-08 12:08:44 -0500 (Wed, 08 Apr 2009) | 7 lines If the first column is empty, output a delimiter anyway. (closes issue ASTERISK-13914) Reported by: john8675309 Patches: 20090408__bug14848.diff.txt uploaded by tilghman (license 14) Tested by: john8675309 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=187050 By: Digium Subversion (svnbot) 2009-04-08 12:13:21 Repository: asterisk Revision: 187051 _U branches/1.6.2/ U branches/1.6.2/funcs/func_odbc.c ------------------------------------------------------------------------ r187051 | tilghman | 2009-04-08 12:13:21 -0500 (Wed, 08 Apr 2009) | 14 lines Merged revisions 187050 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r187050 | tilghman | 2009-04-08 12:08:43 -0500 (Wed, 08 Apr 2009) | 7 lines If the first column is empty, output a delimiter anyway. (closes issue ASTERISK-13914) Reported by: john8675309 Patches: 20090408__bug14848.diff.txt uploaded by tilghman (license 14) Tested by: john8675309 ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=187051 |