diff --git a/Framework/Built_In_Automation/Database/BuiltInFunctions.py b/Framework/Built_In_Automation/Database/BuiltInFunctions.py index 4f756456b..2b9cbd7e9 100755 --- a/Framework/Built_In_Automation/Database/BuiltInFunctions.py +++ b/Framework/Built_In_Automation/Database/BuiltInFunctions.py @@ -451,7 +451,7 @@ def select_from_db(data_set): if "table" in left.lower(): # Get the and query, and remove any whitespaces table_name= right.strip() - if left.lower()=="where": + if left.strip().lower()=="where": where=right.strip() if "action" in mid.lower(): variable_name = right.strip()