Commit 65806f0a authored by Bill Schaller's avatar Bill Schaller

One last nitpick from @deeky666

parent 81ee4583
......@@ -115,7 +115,7 @@ class SQLServer2012Platform extends SQLServer2008Platform
// Queries using OFFSET... FETCH MUST have an ORDER BY clause
// Find the position of the last instance of ORDER BY and ensure it is not within a parenthetical statement
$orderByPos = strripos($query, "ORDER BY");
$orderByPos = strripos($query, " ORDER BY ");
if ($orderByPos === false
|| substr_count($query, "(", $orderByPos) - substr_count($query, ")", $orderByPos)
) {
......
Markdown is supported
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