mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Adding comment about the === 't' condition for supporting postgres
This commit is contained in:
parent
a48beac845
commit
7fd6e14423
@ -98,6 +98,8 @@ class DBForeignKey extends DBInt
|
||||
|
||||
$dataQuery->setSelect(['over_threshold' => 'count(*) > ' . (int) $threshold]);
|
||||
$result = $dataQuery->execute()->column('over_threshold');
|
||||
|
||||
// Checking for 't' supports PostgreSQL before silverstripe/postgresql@2.2
|
||||
$overThreshold = !empty($result) && ($result[0] === 't' || (int) $result[0] === 1);
|
||||
|
||||
static::$foreignListCache[$hasOneClass] = [
|
||||
|
Loading…
Reference in New Issue
Block a user