Hi all, I have a little question on <dtml-sqlvar ...>. My problem is, that i want to insert values into a table and the type of the values are integer8. I tried with <dtml-sqlvar foo type="long"> but it doesnt work. How can i use <dtml-sqlvar> with longs? Will this feature be added in further versions? Is there a product which patches this problem? If not i would write such a thing myself. Regards -- Andre Schubert EMail: Andre.Schubert@km3.de Tel: 03774 6625-78 km3 teledienst GmbH Fax: 03774 6625-79
Howdi. On Wed, Mar 06, 2002 at 09:24:04AM +0100, Andre Schubert wrote:
Hi all,
I have a little question on <dtml-sqlvar ...>. My problem is, that i want to insert values into a table and the type of the values are integer8. I tried with <dtml-sqlvar foo type="long"> but it doesnt work. How can i use <dtml-sqlvar> with longs? Will this feature be added in further versions? Is there a product which patches this problem? If not i would write such a thing myself.
hmm. currently sqlvar only has knowledge of int, but this is a difference to long in python. i will add this to the sqlvar and sqltest and mail you the diff, as well put this in the tracker. Greetings Christian -- 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'])
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 ... Greetings Christian -- 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'])
participants (2)
-
Andre Schubert -
Christian Theune