mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-27 21:01:28 -07:00
issue-671: get ASNI_QUOTES from session sql_mode instead of GLOBAL sql_mode
This commit is contained in:
parent
28bf7093be
commit
6d4fc3c24f
3 changed files with 117 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue