1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 21:34:03 +00:00

Add getValue($queryGrammar) to raw query

This commit is contained in:
lukinovec 2023-02-16 16:23:14 +01:00
parent 3b5e1fb494
commit fc370ff789

View file

@ -40,7 +40,8 @@ class PermissionControlledMySQLDatabaseManager extends MySQLDatabaseManager impl
protected function isVersion8(): bool
{
$version = $this->database()->select($this->database()->raw('select version()'))[0]->{'version()'};
$queryGrammar = $this->database()->getQueryGrammar();
$version = $this->database()->select($this->database()->raw('select version()')->getValue($queryGrammar))[0]->{'version()'};
return version_compare($version, '8.0.0') >= 0;
}