[Zope-dev] sqlvar and longs

Andre Schubert andre.schubert@km3.de
Wed, 06 Mar 2002 11:48:26 +0100


>Hmmm ... i have been a bit to fast. 
>I wrapped my had around this, and found that long is
>handled through the int, by simply stripping the "L"
>of it (pythons string representation of long is 214321L ...)
>so it get passed as a valid long string. 
>
>sorry for mixing things up ...

Right, but works only if the string-representation is not greater than
the max-value of an integer.
The following does not work for me.

<dtml-let longnumber="2400000000L">
update tbl_test set adresse = <dtml-sqlvar longnumber type="int">
</dtml-let>

Greetings

-- 
Andre Schubert            EMail:   Andre.Schubert@km3.de
                          Tel:     03774 6625-78
km3 teledienst GmbH       Fax:     03774 6625-79