Skip to content

Commit

Permalink
MySQL group_concat_max_len option set to 32-bit platforms' max value
Browse files Browse the repository at this point in the history
  • Loading branch information
sashaaero authored and kozlovsky committed Jan 4, 2019
1 parent 6e340ff commit d2508c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pony/orm/dbproviders/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def inspect_connection(provider, connection):
provider.max_time_precision = 6
cursor.execute('select database()')
provider.default_schema_name = cursor.fetchone()[0]
cursor.execute('set session group_concat_max_len = 4294967295')

def should_reconnect(provider, exc):
return isinstance(exc, mysql_module.OperationalError) and exc.args[0] == 2006
Expand Down

0 comments on commit d2508c4

Please sign in to comment.