mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Allow for BC for DB adapters that return an actual boolean when selecting boolean literals in SQL
This commit is contained in:
parent
ef0af7ae9c
commit
f9fc4f6641
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user