Changeset 2954 for pykota/trunk/pykota/storages
- Timestamp:
- 06/21/06 09:37:16 (18 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/mysqlstorage.py
r2874 r2954 50 50 self.database.autocommit(1) 51 51 self.cursor = self.database.cursor() 52 self.cursor.execute("SET NAMES 'utf8';") 52 53 self.cursor.execute("SET TRANSACTION ISOLATION LEVEL READ COMMITTED;") # Same as PostgreSQL and Oracle's default 53 54 self.closed = 0 -
pykota/trunk/pykota/storages/pgstorage.py
r2874 r2954 54 54 self.database = pg.connect(host=host, port=port, dbname=dbname, user=user, passwd=passwd) 55 55 self.closed = 0 56 self.database.query("SET CLIENT_ENCODING TO 'UTF-8';") 56 57 self.tool.logdebug("Database opened (host=%s, port=%s, dbname=%s, user=%s)" % (host, port, dbname, user)) 57 58