Skip to content

Commit 44b30fd

Browse files
committed
fix: wrong driver method used
1 parent 65213c4 commit 44b30fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/db/cortex.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ protected function filteredFind($filter = NULL, array $options = NULL, $ttl = 0,
831831
if (empty($fields))
832832
// Select at least one field, ideally the grouping fields or sqlsrv fails
833833
$fields=preg_replace('/HAVING.+$/i','',$options['group']);
834-
if (preg_match('/mssql|dblib|sqlsrv/',$this->engine))
834+
if (preg_match('/mssql|dblib|sqlsrv/',$this->db->driver()))
835835
$fields='TOP 100 PERCENT '.$fields;
836836
}
837837
if (!$count)

0 commit comments

Comments
 (0)