mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fixing broken test because of change done in previous commit
This commit is contained in:
parent
106379b7ef
commit
00a3eda4d0
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ class DboPostgres extends DboSource {
|
||||||
}
|
}
|
||||||
$count = count($fields);
|
$count = count($fields);
|
||||||
|
|
||||||
if ($count >= 1 && !preg_match('/^\s*COUNT\(/', $fields[0])) {
|
if ($count >= 1 && !preg_match('/^\s*COUNT\(\*/', $fields[0])) {
|
||||||
$result = array();
|
$result = array();
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i = 0; $i < $count; $i++) {
|
||||||
if (!preg_match('/^.+\\(.*\\)/', $fields[$i]) && !preg_match('/\s+AS\s+/', $fields[$i])) {
|
if (!preg_match('/^.+\\(.*\\)/', $fields[$i]) && !preg_match('/\s+AS\s+/', $fields[$i])) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue