FIX Allow for BC for DB adapters that return an actual boolean when selecting boolean literals in SQL

This commit is contained in:
Guy Marriott 2019-04-17 15:19:15 +12:00 committed by Sam Minnee
parent ef0af7ae9c
commit f9fc4f6641
1 changed files with 1 additions and 1 deletions

View File

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