[Checkins] SVN: relstorage/branches/1.1/relstorage/adapters/ Unicode conversion happens earlier; RelStorage doesn't have to deal with it.
Shane Hathaway
shane at hathawaymix.org
Fri Dec 19 05:18:01 EST 2008
Log message for revision 94188:
Unicode conversion happens earlier; RelStorage doesn't have to deal with it.
The 1.1 branch and the trunk now match.
Changed:
U relstorage/branches/1.1/relstorage/adapters/mysql.py
U relstorage/branches/1.1/relstorage/adapters/postgresql.py
-=-
Modified: relstorage/branches/1.1/relstorage/adapters/mysql.py
===================================================================
--- relstorage/branches/1.1/relstorage/adapters/mysql.py 2008-12-19 07:22:51 UTC (rev 94187)
+++ relstorage/branches/1.1/relstorage/adapters/mysql.py 2008-12-19 10:18:01 UTC (rev 94188)
@@ -81,8 +81,6 @@
def __init__(self, **params):
self._params = params.copy()
- self._params['use_unicode'] = True
- self._params['charset'] = 'utf8'
def create_schema(self, cursor):
"""Create the database tables."""
Modified: relstorage/branches/1.1/relstorage/adapters/postgresql.py
===================================================================
--- relstorage/branches/1.1/relstorage/adapters/postgresql.py 2008-12-19 07:22:51 UTC (rev 94187)
+++ relstorage/branches/1.1/relstorage/adapters/postgresql.py 2008-12-19 10:18:01 UTC (rev 94188)
@@ -23,9 +23,7 @@
log = logging.getLogger("relstorage.adapters.postgresql")
-psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
-
class PostgreSQLAdapter(Adapter):
"""PostgreSQL adapter for RelStorage."""
@@ -191,7 +189,6 @@
"""Open a database connection and return (conn, cursor)."""
try:
conn = psycopg2.connect(self._dsn)
- conn.set_client_encoding('UNICODE')
conn.set_isolation_level(isolation)
cursor = conn.cursor()
cursor.arraysize = 64
More information about the Checkins
mailing list