thinkphp3.2.3数据库sqlite,curd操作add()时报错

浏览:667 发布日期:2018/12/14 分类:求助交流
:(
SQLSTATE[HY000]: General error: 1 near ")": syntax error
错误位置
FILE: D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\Db\Driver.class.php  LINE: 209
TRACE
#0 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\Db\Driver.class.php(209): PDO->prepare('INSERT INTO t_f...')
#1 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\Db\Driver.class.php(824): Think\Db\Driver->execute('INSERT INTO t_f...', false)
#2 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\Model.class.php(320): Think\Db\Driver->insert(Array, Array, false)
#3 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\App\Index\Action\ApAction.class.php(261): Think\Model->add()
#4 [internal function]: Index\Action\ApAction->test()
#5 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\App.class.php(173): ReflectionMethod->invoke(object(Index\Action\ApAction))
#6 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\App.class.php(110): Think\App::invokeAction(object(Index\Action\ApAction), 'test')
#7 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\App.class.php(204): Think\App::exec()
#8 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\Library\Think\Think.class.php(120): Think\App::run()
#9 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\Core\ThinkPHP.php(97): Think\Think::start()
#10 D:\appserv\www\dglg\openwrt\porting\files\usr\dydtech\www\index.php(37): require('D:\\appserv\\www\\...')
#11 {main}
ThinkPHP3.2.3 { Fast & Simple OOP PHP framework } -- [ WE CAN DO IT JUST THINK ]


后来就直接用thinkphp3.2.2版本了,数据库配置type改为pdo.
最佳答案
评论( 相关
后面还有条评论,点击查看>>