[Zope-dev] sqlvar and longs

Christian Theune ct@gocept.com
Wed, 6 Mar 2002 12:03:18 +0100


Ok. Let me see ... dideldimm ... ah right ... stupid thing
they remove the L and pass it  to int() ... i will fix that.

On Wed, Mar 06, 2002 at 11:48:26AM +0100, Andre Schubert wrote:
> >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

-- 
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])