1

我正在使用 dbunit 进行测试,dbunit 因查询语法错误而失败。查看查询,有方括号保护列名,我知道方括号在 MYSQL 中是不可接受的。如何摆脱方括号?

testException = com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 

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 

'[sades] set [CORRELATION_ID] = 'ZYX', [LMT_COUNT] = 132.58000000, [SPO' at line 1]], class dirties context [false], class mode [null], method dirties context [false].
4

0 回答 0