Closed muuvmuuv closed 4 days ago
Fix:
$sql = preg_replace('/^SELECT(\s+DISTINCT)?\s/i', 'SELECT$1 TOP ' . $count . ' ', $sql);
In shardj/zf1-future/library/Zend/Db/Adapter/Sqlsrv.php:618
Anyone to create PR and test locally?
Does it have or need tests? We have it in production at one customer and no issues since i vreated the ticket so far
If it's already proven, then just create an PR pls.
Just created a pr. Wasn't able to run the sqlsrv tests ("test") but all other tests run well.
When using both, distinct will come after "top 20" which results in an SQL error.