We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00993a3 commit 55970d0Copy full SHA for 55970d0
1 file changed
system/Database/Postgre/Connection.php
@@ -133,7 +133,9 @@ public function getVersion(): string
133
}
134
135
$pgVersion = pg_version($this->connID);
136
- $this->dataCache['version'] = $pgVersion['server'] ?? '';
+ $this->dataCache['version'] = isset($pgVersion['server']) ?
137
+ (preg_match('/^(\d+\.\d+)/', $pgVersion['server'], $matches) ? $matches[1] : '') :
138
+ '';
139
140
return $this->dataCache['version'];
141
0 commit comments