Menu

Commit [r8669]  Maximize  Restore  History

psycopg2 and MySQLdb didn't handle correctly `execute()` arguments which were subclasses of `unicode`.

For psycopg2, we register explicit adapters.
For MySQLdb, we reuse the converter of the types.UnicodeType for the Markup class (Empty was OK since string_literal can convert it to `''`).

Fixes #8740 (Empty class, introduced in r8661) and #3501 (Markup class).

Thanks to harald.radi@... for contributing a fix in #3501.

cboos 2009-10-18

changed /trunk/trac/db/mysql_backend.py
changed /trunk/trac/db/postgres_backend.py
changed /trunk/trac/db/tests/api.py
changed /trunk/trac/util/text.py
/trunk/trac/db/mysql_backend.py Diff Switch to side-by-side view
Loading...
/trunk/trac/db/postgres_backend.py Diff Switch to side-by-side view
Loading...
/trunk/trac/db/tests/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/util/text.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB