/** {@inheritdoc} */ protected function _parseDefault($data) { // Do not use the default from autoincrement columns. // See _isAutoIncrement() for an explanation. if (!$this->_isAutoIncrement($data)) { parent::_parseDefault($data); // Extract value from typed defaults if (preg_match("/^('(.*)'|NULL)::{$data['data_type']}\$/", $this->_default, $matches)) { if ($matches[1] == 'NULL') { $this->_default = null; } else { // String without surrounding quotes. Quote characters // within the string must be unescaped first. $this->_default = str_replace("''", "'", $matches[2]); } } } }