-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
最新版本发现一个问题:调用请求处理器 com.mycom.helloworld.UserController.list 时发生错误: Server Error
javax.persistence.PersistenceException: Query threw SQLException:关键字 'user' 附近有语法错误。
Bind values:[]
Query was:
select t0.id c0, t0.name c1, t0.age c2, t0.role_id c3, t0.create_date c4 from user t0
原因是生成的sql没有根据数据库方言加上关健字的处理。上面的sql语句中,由user是数据库的关健字,正确生成是应该在关健字前后加上[]。如:select t0.id c0, t0.name c1, t0.age c2, t0.role_id c3, t0.create_date c4 from [user] t0
使用的数据库产品是:sqlserver2014
Metadata
Metadata
Assignees
Labels
No labels