Fixes #14434: fixed metadata cache regression

This commit is contained in:
nikosid
2017-07-13 08:54:36 +02:00
committed by Alexander Makarov
parent 445019779f
commit fe607b83d2

View File

@ -656,8 +656,8 @@ abstract class Schema extends Object
} }
if (!array_key_exists($type, $this->_tableMetadata[$name])) { if (!array_key_exists($type, $this->_tableMetadata[$name])) {
$this->_tableMetadata[$name][$type] = $this->{'loadTable' . ucfirst($type)}($this->getRawTableName($name)); $this->_tableMetadata[$name][$type] = $this->{'loadTable' . ucfirst($type)}($this->getRawTableName($name));
$this->saveTableMetadataToCache($cache, $name);
} }
$this->saveTableMetadataToCache($cache, $name);
return $this->_tableMetadata[$name][$type]; return $this->_tableMetadata[$name][$type];
} }