不支持的数据表达式

浏览:2583 发布日期:2019/09/28 分类:ThinkPHP5专区 关键字: 不支持的数据表达式
我最近写的一个项目,我部署在服务器上的时候用着都挺好的。后来公司要部署一个在内网上单机的使用的时候举报错了。报不支持的数据表达式 [0] Exception in Mysql.php line 113。
报错代码如下:[0] Exception in Mysql.php line 113
不支持的数据表达式:/api/Trip/save
            if ('__TABLE__' == $table) {
                $table = $this->query->getTable();
            }
            if (isset($options['alias'][$table])) {
                $table = $options['alias'][$table];
            }
        }

        if ($strict && !preg_match('/^[\w\.\*]+$/', $key)) {
            throw new Exception('not support data:' . $key);
        }
        if ('*' != $key && ($strict || !preg_match('/[,\'\"\*\(\)`.\s]/', $key))) {
            $key = '`' . $key . '`';
        }
        if (isset($table)) {
            if (strpos($table, '.')) {
                $table = str_replace('.', '`.`', $table);
            }
            $key = '`' . $table . '`.' . $key;
我以前的服务上的环境是:
Linux
PHP7.2
mysql5.6

单机上的是:
Windows7
PHP7.3
MySQL8.0.12

各位有没有遇到同样的问题呢?

最佳答案
评论() 相关
后面还有条评论,点击查看>>