- Timestamp:
- 09/06/06 14:44:16 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/mysqlstorage.py
r2954 r3009 48 48 self.tool.logdebug("Trying to open database (host=%s, port=%s, dbname=%s, user=%s)..." % (host, port, dbname, user)) 49 49 self.database = MySQLdb.connect(host=host, port=port, db=dbname, user=user, passwd=passwd) 50 self.database.autocommit(1) 50 try : 51 self.database.autocommit(1) 52 except AttributeError : 53 self.tool.printInfo(_("Your version of python-mysqldb is too old. Please install a newer release."), "error") 51 54 self.cursor = self.database.cursor() 52 55 self.cursor.execute("SET NAMES 'utf8';")