<s> """<STR_LIT>""" <EOL> from . base import ( MySQLDialect , MySQLExecutionContext , <EOL> MySQLCompiler , MySQLIdentifierPreparer ) <EOL> from ... connectors . mysqldb import ( <EOL> MySQLDBExecutionContext , <EOL> MySQLDBCompiler , <EOL> MySQLDBIdentifierPreparer , <EOL> MySQLDBConnector <EOL> ) <EOL> from . base import TEXT <EOL> from ... import sql <EOL> class MySQLExecutionContext_mysqldb ( <EOL> MySQLDBExecutionContext , <EOL> MySQLExecutionContext ) : <EOL> pass <EOL> class MySQLCompiler_mysqldb ( MySQLDBCompiler , MySQLCompiler ) : <EOL> pass <EOL> class MySQLIdentifierPreparer_mysqldb ( <EOL> MySQLDBIdentifierPreparer , <EOL> MySQLIdentifierPreparer ) : <EOL> pass <EOL> class MySQLDialect_mysqldb ( MySQLDBConnector , MySQLDialect ) : <EOL> execution_ctx_cls = MySQLExecutionContext_mysqldb <EOL> statement_compiler = MySQLCompiler_mysqldb <EOL> preparer = MySQLIdentifierPreparer_mysqldb <EOL> def _check_unicode_returns ( self , connection ) : <EOL> has_utf8_bin = self . server_version_info > ( <NUM_LIT:5> , ) and connection . scalar ( <EOL> "<STR_LIT>" <EOL> % ( <EOL> self . identifier_preparer . quote ( "<STR_LIT>" ) , <EOL> self . identifier_preparer . quote ( "<STR_LIT>" ) <EOL> ) ) <EOL> if has_utf8_bin : <EOL> additional_tests = [ <EOL> sql . collate ( sql . cast ( <EOL> sql . literal_column ( <EOL> "<STR_LIT>" ) , <EOL> TEXT ( charset = '<STR_LIT:utf8>' ) ) , "<STR_LIT>" ) <EOL> ] <EOL> else : <EOL> additional_tests = [ ] <EOL> return super ( MySQLDBConnector , self ) . _check_unicode_returns ( <EOL> connection , additional_tests ) <EOL> dialect = MySQLDialect_mysqldb </s>
