Merge pull request #9813 from 3Dgoo/patch-1

Fix DataQuery::exists() not working correctly
This commit is contained in:
Guy Marriott 2020-12-28 23:25:42 -08:00 committed by GitHub
commit 20686e4eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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';
}
/**