[Zope] *** Z SQL Method and type LONG ***

Dieter Maurer dieter@handshake.de
Tue, 26 Nov 2002 20:24:06 +0100


Bo M. Maryniuck writes:
 > Well, I have great surpri... no, rather trouble. Maybe I've something missed 
 > (though I'm sure I'm not :), but how to pass to the SQL Method *long* type? 
 > E.g. I need to pass to a DB a 999999999999999999999 as long, not as string 
 > and SQL Method always fails, because /lib/python/Shared/DC/ZRDB/sqltest.py 
 > can understand only "float", "string", "int" and "not blank". If you pass 
 > type="int" this, for sure, runs int(value) and, sure, crashes. Should I use 
 > _float_??? No! Once I've changed sqltest.py for "int" type make as long 
 > (always). And it's work, but I would not like use my own patches for Zope...
 > 
 > So how to solve this in normal way?
You file a "feature+solution" request in Zope's collector (<http://collector.zope.org>).

With some luck, your enhancement will be part of Zope 2.7 or 2.8.


Dieter