[ZCM] [ZC] 269/ 1 Request "sqlvar and sqltest can't handle long integers properly"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Wed, 06 Mar 2002 07:43:08 -0500


Issue #269 Update (Request) "sqlvar and sqltest can't handle long integers properly"
 Status Pending, Zope/bug+solution medium
To followup, visit:
  http://collector.zope.org/Zope/269

==============================================================
= Request - Entry #1 by ctheune on Mar 6, 2002 7:43 am


Uploaded:  "sqlpatches.tar.gz"
 - http://collector.zope.org/Zope/269/sqlpatches.tar.gz/view
I had following thread on the zope-dev list:
http://lists.zope.org/pipermail/zope-dev/2002-March/015451.html

I found that 

a) still atoi() is used (mixed together with usage of int())
b) if sqltest and sqlvar find an longint, they just remove the "L" and pass it to the atoi() respective int() function, which doesn't allow LongType integers to pass. the following two patches fix that. They are diffed with cvs against 
the HEAD branch.

BEWARE: i didn't had time to test them properly.
==============================================================