Commit d14de83e authored by Julien Muchembled's avatar Julien Muchembled

mysql: make sure any configured session variable is not silently capped

parent edc63c0f
...@@ -154,8 +154,8 @@ class MySQLDatabaseManager(DatabaseManager): ...@@ -154,8 +154,8 @@ class MySQLDatabaseManager(DatabaseManager):
self._config = {} self._config = {}
conn = self.conn conn = self.conn
conn.autocommit(False) conn.autocommit(False)
conn.query("SET SESSION group_concat_max_len = %u" % (2**32-1))
conn.set_sql_mode("TRADITIONAL,NO_ENGINE_SUBSTITUTION") conn.set_sql_mode("TRADITIONAL,NO_ENGINE_SUBSTITUTION")
conn.query("SET SESSION group_concat_max_len = %u" % (2**32-1))
if self._engine == 'RocksDB': if self._engine == 'RocksDB':
# Maximum value for _deleteRange. # Maximum value for _deleteRange.
conn.query("SET SESSION rocksdb_max_row_locks = %u" % 2**30) conn.query("SET SESSION rocksdb_max_row_locks = %u" % 2**30)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment