Commit 71aefd83 authored by Elias Villiger's avatar Elias Villiger
Browse files

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

parent 8203e8f7
Pipeline #981 passed with stage
in 1 minute and 46 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