Fixed an issue where adding/updating records fails if the table name contains percent sign.

refs #4438
This commit is contained in:
Nikhil Mohite
2021-03-12 11:59:45 +05:30
committed by Akshay Joshi
parent 408df750be
commit 68132e2a8f
6 changed files with 15 additions and 13 deletions

View File

@@ -1970,5 +1970,9 @@ Failed to reset the connection to the server due to following error:
if not status:
return None
else:
mogrified_sql = cursor.mogrify(query, parameters)
return mogrified_sql
if parameters:
mogrified_sql = cursor.mogrify(query, parameters)
return mogrified_sql
else:
return query