Fix DataQuery::exists() not working correctly

Fixes `DataQuery::exists()` not working correctly in some cases as discussed in #9809
This commit is contained in:
3Dgoo 2020-12-29 16:45:58 +10:30 committed by GitHub
parent 43777d1df2
commit 3b74c2596f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ class DataQuery
$result = reset($row);
// Checking for 't' supports PostgreSQL before silverstripe/postgresql@2.2
return $result === true || $result === 1 || $result === 't';
return $result === true || $result === 1 || $result === '1' || $result === 't';
}
/**