wuzhiwei18 commented on issue #9292:
URL: https://github.com/apache/shardingsphere/issues/9292#issuecomment-772312429
this keyword column is show. original sql is
`insert into album( app_id,`name`,cover_path,content,
`show`,hot,`free` ) values ( ?,?,?,?,?,?,? )`
after rewrite ;
`insert into album (app_id, name, cover_path, content, show, hot, free)
VALUES (?, ?, ?, ?, ?, ?, ?) `
this show column lost symbol `
error msg :
`{
"code": 500,
"data": null,
"message": "\r\n### Error updating database. Cause:
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right syntax
to use near 'show, hot, free) VALUES ('3001', '图集2', '132545w34',
'[{\"order\":1,\"picPath\":' at line 2\r\n### The error may exist in file
[D:\\development\\rockyplay-games\\rockyplay-game-admin\\target\\classes\\mapper\\AlbumDao.xml]\r\n###
The error may involve
com.rockyplay.game.admin.dao.album.AlbumDao.insertSelective-Inline\r\n### The
error occurred while setting parameters\r\n### SQL: insert into album
( app_id, `name`,
cover_path,
content, `show`,
hot,
`free` ) values ( ?,
?,
?, ?,
?, ?,
? )\r\n### Cause:
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right syntax
to use near 'show, hot, free) VALUES ('3001', '图集2', '132545w34',
'[{\"order\":1,\"picPath\":' at line 2\n; bad SQL grammar []; nested exception
is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right
syntax to use near 'show, hot, free) VALUES ('3001', '图集2', '132545w34',
'[{\"order\":1,\"picPath\":' at line 2"
}`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]