This commit is contained in:
Miroslav Stampar
2023-12-01 11:26:52 +01:00
parent 67ab79a625
commit 29f09e235c
2 changed files with 5 additions and 1 deletions

View File

@@ -116,6 +116,10 @@ class SQLAlchemy(GenericConnector):
def execute(self, query):
retVal = False
# Reference: https://stackoverflow.com/a/69491015
if hasattr(_sqlalchemy, "text"):
query = _sqlalchemy.text(query)
try:
self.cursor = self.connector.execute(query)
retVal = True