[Devel] [ openser-Bugs-1614386 ] mysql module does not handle LONGLONG

SourceForge.net noreply at sourceforge.net
Wed Dec 13 01:22:03 CET 2006


Bugs item #1614386, was opened at 2006-12-12 16:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1614386&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: mysql module does not handle LONGLONG

Initial Comment:
The function db_mysql_get_columns() in modules/mysql/res.c does not include a case for FIELD_TYPE_LONGLONG. Thus, any integer values returned from SELECT are stored as OpenSER string type.

To reproduce against mysql version 5.0.24 with OpenSER 1.2 CVS HEAD, try the following script snippet:

avp_db_query("select 0+1","$avp(i:100)");
if (avp_check("i:100","and/i:1"))
    xlog ("L_DBG","Stored correctly.\n");
else
    xlog ("L_DBG","Error!\n");

To fix, add 'case FIELD_TYPE_LONGLONG' to switch statement in main loop.
--
kobi

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1614386&group_id=139143



More information about the Devel mailing list