Commit f9528e76 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3221850 by Gábor Hojtsy, rajeevgole: 'VERSION' is not a recognized...

Issue #3221850 by Gábor Hojtsy, rajeevgole: 'VERSION' is not a recognized built-in function name on MSSQL
parent 8e717c8e
......@@ -89,7 +89,7 @@ class CorrectDbServerVersion {
*/
protected function getDatabaseServerVersion(): string {
if (!$this->databaseServerVersion) {
$this->databaseServerVersion = $this->database->query('SELECT VERSION()')->fetchColumn();
$this->databaseServerVersion = $this->database->version();
}
return $this->databaseServerVersion;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment