Patch for sporadic --parse-errors in generic SQL errors (e.g. CrateDB)

This commit is contained in:
Miroslav Stampar
2020-02-02 22:01:57 +01:00
parent db126af86a
commit 4278bbce11
3 changed files with 11 additions and 5 deletions

View File

@@ -2703,6 +2703,12 @@ def extractErrorMessage(page):
retVal = candidate
break
if not retVal and wasLastResponseDBMSError():
match = re.search(r"[^\n]*SQL[^\n:]*:[^\n]*", page, re.IGNORECASE)
if match:
retVal = match.group(0)
return retVal
def findLocalPort(ports):