diff --git a/src/ORM/DataQuery.php b/src/ORM/DataQuery.php index 93d02b5c6..c15bb569d 100644 --- a/src/ORM/DataQuery.php +++ b/src/ORM/DataQuery.php @@ -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'; } /**