mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
status value is in column 1 (2. column), also fixed not working fetchColumn
This commit is contained in:
parent
3e5c1cb8ad
commit
431a19b460
@ -3441,6 +3441,8 @@
|
||||
while ($column_number-- >= 0)
|
||||
{
|
||||
$ret = array_shift($row);
|
||||
|
||||
if ($this->fetchMode == ADODB_FETCH_BOTH) array_shift($row);
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
@ -352,7 +352,7 @@ class egw_db
|
||||
// check Galera wsrep_local_state for node is not in state Synced, eg. Donor
|
||||
// check is only done for Type=mysql and will succed if no Galera
|
||||
if ($new_connection && $this->Type == 'mysql' && strpos($this->Host, ';') !== false &&
|
||||
($state = $this->query("SHOW STATUS LIKE 'wsrep_local_state'")->fetchColumn() !== false) &&
|
||||
($state = $this->query("SHOW STATUS LIKE 'wsrep_local_state'")->fetchColumn(1) !== false) &&
|
||||
$state != 4) // 4 = Synced
|
||||
{
|
||||
throw new egw_exception_db_connection('wsrep-local-state='.array2string($state).' != 4');
|
||||
|
Loading…
Reference in New Issue
Block a user