/** * 字段和表名处理 * @access protected * @param string $key * @return string */ protected function parseKey(&$key) { if (!is_numeric($key) && $this->dbType == 'MYSQL') { $key = trim($key); if (!preg_match('/[,\'\\"\\*\\(\\)`.\\s]/', $key)) { $key = '`' . $key . '`'; } return $key; } else { return parent::parseKey($key); } }