Hi, found and worked around a problem with DataBase.

Problem

cx_Oracle asserts the query is str, but we give unicode.

Work Around

My work around was to edit DataBase.py and put

        query = query.encode(connection.encoding)

Just after connection is created (in the elif connection_type == 'oracle': block.

Solution

Use the workaround or wait Python 3000 to have proper string/unicode handling (Anthony Tuininga said cx_Oracle will have automatic conversion than).

Contact Me

Thanks! <SPAMLESS gt-dev AT gthomas NOSPMAPAM DOT homelinux NOSMPMAPAM DOT org>

MoinMoin: MacroMarket/DataBase/Bugs/oracleEncoding (last edited 2008-04-02 12:39:38 by catv-5985783a)