In pyTigerGraph module, pyDriver.py we are setting self.ExceptionDetected = True if line starts with “GSQL__RETURN__CODE”. We gave some print statements and found even for a statement like “drop query all” the ret value is 212 but the message is successful one “All queries are dropped”. Can you please explain why statuscode is not 0 and if it is 212 why it doesn’t throw any error.
We executed by giving a simple query like “ls” and statuscode(ret value) is 0 which is fine, if we give query like “lss” statuscode(ret value) is 211 which is also fine. But not sure why ret value is 212 for query “drop query all”
The code I am referring
def _command_interactive(self, url, content, ans="", out=False):
def __handle__interactive(reader): res =  for line in reader: line = line.strip() if line.startswith(PREFIX_RET): _, ret = line.split(",", 1) ret = int(ret) if ret != 0: self.ExceptionDetected = True # raise ExceptionCodeRet(ret)
Also error codes mentioned in the link is referring ret value given in the above code snippet?