Commit f3a12e6f authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'F6944-sql-hint-double-comma' into 'master'

F6944 - Add double comma SQL Hint - refs #6944, closes #6944

See merge request !101
parents 8b2c23cf 71aefd83
Pipeline #1018 passed with stage
in 1 minute and 36 seconds
......@@ -323,6 +323,11 @@ class Database {
$msg .= "HINT: Maybe the tables after 'FROM' should be enclosed by '()' \n";
}
// Check for double comma
if (stripos($errorMsg, 'the right syntax to use near') && preg_match('/,[ ]*,/', $sql)) {
$msg .= "HINT: There seems to be a double comma in your query.\n";
}
return $msg;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment