[Home]

Summary:ASTERISK-12833: [patch] Fields have a maximum length of 255 chars
Reporter:Sean Bright (seanbright)Labels:
Date Opened:2008-10-06 17:49:27Date Closed:2008-10-15 13:57:07
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Functions/func_odbc
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20081006__bug13631.diff.txt
( 1) 20081006__func_odbc.diff.txt
( 2) 20081015__bug13631.diff.txt
Description:As reported on IRC by seanbright and Kobaz
Comments:By: Leif Madsen (lmadsen) 2008-10-15 09:03:22

This just requires the 2nd patch right?

By: Tilghman Lesher (tilghman) 2008-10-15 10:00:03

Correct.

By: Leif Madsen (lmadsen) 2008-10-15 11:13:47

This is very strange... I can get func_odbc working on 1.4 no problem, but in most recent trunk I can't even get it to return data (without the patch). Find me on IRC to discuss if you don't mind.

Also, this patch is supposed to let you return data that is longer than 255 chars? And not that the SQL statement is longer than 255 chars?

By: Tilghman Lesher (tilghman) 2008-10-15 11:41:24

The patch lets you return data fields that exceed 255 chars.  The SQL already had no limit (other than 2048 in the initial template).

By: Leif Madsen (lmadsen) 2008-10-15 13:37:43

I can confirm that I reproduced the issue with vanilla Asterisk trunk, and with the latest patch, data comes back, and I get back more than 255 chars! w00t!

By: Digium Subversion (svnbot) 2008-10-15 13:57:05

Repository: asterisk
Revision: 149687

U   trunk/funcs/func_odbc.c

------------------------------------------------------------------------
r149687 | tilghman | 2008-10-15 13:57:04 -0500 (Wed, 15 Oct 2008) | 7 lines

Permit data fields to contain more than 255 characters.
(closes issue ASTERISK-12833)
Reported by: seanbright
Patches:
      20081015__bug13631.diff.txt uploaded by Corydon76 (license 14)
Tested by: blitzrage

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

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