mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 17:34:03 +00:00
Add getValue($queryGrammar) to raw query
This commit is contained in:
parent
3b5e1fb494
commit
fc370ff789
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ class PermissionControlledMySQLDatabaseManager extends MySQLDatabaseManager impl
|
||||||
|
|
||||||
protected function isVersion8(): bool
|
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;
|
return version_compare($version, '8.0.0') >= 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue