#NEWLINE# def _detect_collations( self , connection ) : #NEWLINE# #INDENT# 'Pull the active COLLATIONS list from the server.\n\n        Cached per-connection.\n        ' #NEWLINE# collations = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# charset = self . _connection_charset #NEWLINE# rs = connection . execute ( 'SELECT CHARACTER_SET_NAME, COLLATION_NAME FROM data_dictionary.COLLATIONS' ) #NEWLINE# for row in self . _compat_fetchall ( rs , charset ) : #NEWLINE# #INDENT# collations [ row [ 0 ] ] = row [ 1 ] #NEWLINE# #UNINDENT# return collations