[sqlalchemy] Python 2.7.1 + SQLAlchemy 0.6.8 + Kinterbasdb == (error) argument for 's' must be a string None None

2012-02-01 Thread León Domingo
Hi, I'm trying to use Python 2.7.1 + SA 0.6.8 + kinterbasdb (3.3.0) and I'm always getting the same error when I try to do some query: File /home/leon/app/env/tg2/local/lib/python2.7/site-packages/ kinterbasdb/__init__.py, line 1695, in addString newEntry = struct.pack(format, codeAsByte,

[sqlalchemy] Re: Python 2.7.1 + SQLAlchemy 0.6.8 + Kinterbasdb == (error) argument for 's' must be a string None None

2012-02-01 Thread León Domingo
Forget it... I was passing the url as a unicode string because I saw some warnings in the past with postgresql. The same thing makes kinterbasdb (firebird) fail. León Domingo Ender - Factoría de Software leon.domi...@ender.es jestre...@ender.es Avda. Cerro del Águila, 7. S23 - 2ª Planta 28703

[sqlalchemy] Re: How to close database connection of a session?

2011-04-05 Thread León
Hi, I'm using session.bind.dispose() León On 5 abr, 07:47, Gary Shi gary...@gmail.com wrote: I found session.close() doesn't close the database connection (by calling session.close and sleep, then check the network connections), neither session.connection().close(). How to close

[sqlalchemy] Re: Alchemy + Firebird Generators

2009-08-05 Thread León
of sequence in the SA documentation. Thanks a lot. León On 4 ago, 16:49, Werner F. Bruhin wbru...@gmail.com wrote: León wrote: Hi, does anybody know how can I use the default param in the Column class to define a new value which comes from aFirebirdgenerator? I get the same thing

[sqlalchemy] Alchemy + Firebird Generators

2009-08-04 Thread León
Hi, does anybody know how can I use the default param in the Column class to define a new value which comes from a Firebird generator? I get the same thing with cod_objeto = self.conexion.execute('SELECT FIRST 1 NEXT VALUE FOR GEN_ %d FROM RDB$DATABASE' % cod_clase).fetchone()[0]