Skip to content

Commit

Permalink
sql_mode can be set in session, therefore we should look for ANSI_QUO…
Browse files Browse the repository at this point in the history
…TES in session variable instead of global variable
  • Loading branch information
SoledaD208 authored Aug 28, 2024
1 parent 37a718c commit 27e3b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 27e3b08

Please sign in to comment.