-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 11.07.2010 15:35, schrieb Cédric Krier: > On 10/07/10 12:53 +0200, Ralf Peschke wrote: >> I think this lines in database.py Cursor.test() >> 367 "'ir_module_module_dependency, '" >> 368 "'ir_translation, '" >> should be changed to >> 367 "'ir_module_module_dependency', " >> 368 "'ir_translation', " > > Fixed with changeset d1bddcf64ea7 > > The strange thing is that the query on my PostgreSQL version 8.4.2 is valid. > Indeed it makes a concat of the two strings without ',' separator. > Which version have you? I have PostgreSQL version 8.4.4 > >> And to avoid the problem I had, tryton not showing even my own >> databases, perhaps we should catch the (possible) exception in >> Database.list() >> newline try: >> 197 if cursor2.test(): >> 198 res.append(db_name) >> 199 cursor2.close(close=True) >> 200 else: >> 201 cursor2.close(close=True) >> 202 database.close() >> newline exception Exception: >> newline database.close() >> newline continue >> >> Only thing I don't understand: why tryton don't throw always an >> exception on the wrong SQL-syntax? > > I don't like to much to catch exception on query that should never failed. > And perhaps if we had this try/except, you did not find the issue :-) > For me it's solved, with the modification tyrton always recognizes its database. Thank you all for your help
Ralf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEUEARECAAYFAkw8SOQACgkQb2+5ZL6Nh6EQSgCXeaaTN3Ox7NDG0tksUvtO8Hnx /ACfdSCpEPdwdMvxVB5jrmVeoGGFej4= =ehKi -----END PGP SIGNATURE----- -- [email protected] mailing list
