issue-671: get ASNI_QUOTES from session sql_mode instead of GLOBAL sql_mode

This commit is contained in:
SoledaD208 2024-10-10 23:18:14 +07:00
parent 28bf7093be
commit 6d4fc3c24f
3 changed files with 117 additions and 1 deletions

View file

@ -32,7 +32,7 @@ class InvalidPrivsError(Exception):
def get_mode(cursor):
cursor.execute('SELECT @@GLOBAL.sql_mode')
cursor.execute('SELECT @@sql_mode')
result = cursor.fetchone()
mode_str = result[0]
if 'ANSI' in mode_str: