DBUNIT MySQL使用Square Brackets

时间:2012-09-13 11:43:42

标签: mysql dbunit

我正在使用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].

0 个答案:

没有答案