Revision c7ea8453
b/pithos/backends/lib/sqlalchemy/dbwrapper.py | ||
---|---|---|
45 | 45 |
class ForeignKeysListener(PoolListener): |
46 | 46 |
def connect(self, dbapi_con, con_record): |
47 | 47 |
db_cursor = dbapi_con.execute('pragma foreign_keys=ON;') |
48 |
db_cursor = dbapi_con.execute('PRAGMA case_sensitive_like=ON;')
|
|
48 |
db_cursor = dbapi_con.execute('pragma case_sensitive_like=ON;')
|
|
49 | 49 |
self.engine = create_engine(db, connect_args={'check_same_thread': False}, poolclass=NullPool, listeners=[ForeignKeysListener()]) |
50 | 50 |
elif db.startswith('mysql://'): |
51 | 51 |
db = '%s?charset=utf8&use_unicode=0' %db |
Also available in: Unified diff