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