/** * */ package testsuite.simple; import testsuite.BaseTestCase; /** * @author Tonci * */ public class TestBug31457 extends BaseTestCase { /** * @param name */ public TestBug31457(String name) { super(name); // TODO Auto-generated constructor stub } public void testBug17402() throws Exception { /* System.out.println("java.vm.version : " + System.getProperty("java.vm.version")); System.out.println("java.vm.vendor : " + System.getProperty("java.vm.vendor")); System.out.println("java.runtime.version : " + System.getProperty("java.runtime.version")); System.out.println("os.name : " + System.getProperty("os.name")); System.out.println("os.version : " + System.getProperty("os.version ")); System.out.println("sun.management.compiler : " + System.getProperty("sun.management.compiler")); */ try { createTable("bug31457", "(ID INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, DATA VARCHAR(50))"); /* mysql> INSERT INTO bug31457 (DATA) values ("\\'b\\'") ,("{}") ,("{f"); Query OK, 3 rows affected (0.00 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select * from bug31457; +----+-------+ | ID | DATA | +----+-------+ | 1 | \'b\' | | 2 | {} | | 3 | {f | +----+-------+ 3 rows in set (0.00 sec) mysql> */ assertEquals(3, this.stmt.executeUpdate("INSERT INTO bug31457 (DATA) values ('\\'b\\'') ,('{}') ,('{f')")); } finally { closeMemberJDBCResources(); } } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub junit.textui.TestRunner.run(TestBug31457.class); } }