lc_alias = schema._get_table_key(table.name, table.schema)
table.metadata.tables[lc_alias] = table
+ #@engine_base.connection_memoize(('mysql', 'charset'))
def _detect_charset(self, connection):
raise NotImplementedError()
+ #@engine_base.connection_memoize(('mysql', 'lower_case_table_names'))
def _detect_casing(self, connection):
"""Sniff out identifier case sensitivity.
row.close()
return cs
+ #@engine_base.connection_memoize(('mysql', 'collations'))
def _detect_collations(self, connection):
"""Pull the active COLLATIONS list from the server.
client_flag = opts.get('client_flag', 0)
if self.dbapi is not None:
try:
- CLIENT_FLAGS = __import__('MySQLdb.constants').constants.CLIENT
+ import MySQLdb.constants.CLIENT as CLIENT_FLAGS
client_flag |= CLIENT_FLAGS.FOUND_ROWS
except:
pass
def do_ping(self, connection):
connection.ping()
- def _get_server_version_info(self,connection):
+ #@engine_base.connection_memoize(('mysql', 'server_version_info'))
+ def _get_server_version_info(self, connection):
dbapi_con = connection.connection
version = []
r = re.compile('[.\-]')
return 'latin1'
-dialect = MySQL_mysqldb
\ No newline at end of file
+dialect = MySQL_mysqldb