Commit d0c44f90 authored by Bill Schaller's avatar Bill Schaller Committed by Steve Müller

improve regex in isOrderByInTopNSubquery

parent b1ae165a
......@@ -1281,7 +1281,7 @@ class SQLServerPlatform extends AbstractPlatform
$currentPosition--;
}
if (preg_match('/SELECT\s+TOP\s/', $subQueryBuffer)) {
if (preg_match('/SELECT\s+(DISTINCT\s+)?TOP\s/i', $subQueryBuffer)) {
return true;
}
......
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