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

Bo M. Maryniuck b.maryniuk@forbis.lt
Mon, 25 Nov 2002 20:39:34 +0200


Hi.

Well, I have great surpri... no, rather trouble. Maybe I've something mis=
sed=20
(though I'm sure I'm not :), but how to pass to the SQL Method *long* typ=
e?=20
E.g. I need to pass to a DB a 999999999999999999999 as long, not as strin=
g=20
and SQL Method always fails, because /lib/python/Shared/DC/ZRDB/sqltest.p=
y=20
can understand only "float", "string", "int" and "not blank". If you pass=
=20
type=3D"int" this, for sure, runs int(value) and, sure, crashes. Should I=
 use=20
_float_??? No! Once I've changed sqltest.py for "int" type make as long=20
(always). And it's work, but I would not like use my own patches for Zope=
=2E..

So how to solve this in normal way?

--=20
Regards, Bogdan

1 4m 5o 3l337! just got r00t on this <a href=3D"127.0.0.1">k3wl site</a> =
j00
sux0r5!