db_pdo::parseKey PHP Method

parseKey() protected method

字段和表名处理
protected parseKey ( string &$key ) : string
$key string
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);
        }
    }