49
* Tests fix for BUG#11797 - Escape tokenizer doesn't respect stacked single quotes
49
* Tests fix for BUG#11797 - Escape tokenizer doesn't respect stacked single
52
* @throws Exception if the test fails.
54
55
public void testBug11797() throws Exception {
55
assertEquals("select 'ESCAPED BY ''\\'' ON {tbl_name | * | *.* | db_name.*}'",
56
this.conn.nativeSQL("select 'ESCAPED BY ''\\'' ON {tbl_name | * | *.* | db_name.*}'"));
57
"select 'ESCAPED BY ''\\'' ON {tbl_name | * | *.* | db_name.*}'",
59
.nativeSQL("select 'ESCAPED BY ''\\'' ON {tbl_name | * | *.* | db_name.*}'"));
60
* Tests fix for BUG#11498 - Escape processor didn't honor strings demarcated
63
* Tests fix for BUG#11498 - Escape processor didn't honor strings
64
* demarcated with double quotes.
63
* @throws Exception if the test fails.
65
69
public void testBug11498() throws Exception {
66
assertEquals("replace into t1 (id, f1, f4) VALUES(1,\"\",\"tko { zna gdje se sakrio\"),(2,\"a\",\"sedmi { kontinentio\"),(3,\"a\",\"a } cigov si ti?\")",
67
this.conn.nativeSQL("replace into t1 (id, f1, f4) VALUES(1,\"\",\"tko { zna gdje se sakrio\"),(2,\"a\",\"sedmi { kontinentio\"),(3,\"a\",\"a } cigov si ti?\")"));
71
"replace into t1 (id, f1, f4) VALUES(1,\"\",\"tko { zna gdje se sakrio\"),(2,\"a\",\"sedmi { kontinentio\"),(3,\"a\",\"a } cigov si ti?\")",
73
.nativeSQL("replace into t1 (id, f1, f4) VALUES(1,\"\",\"tko { zna gdje se sakrio\"),(2,\"a\",\"sedmi { kontinentio\"),(3,\"a\",\"a } cigov si ti?\")"));
78
* Tests fix for BUG#14909 - escape processor replaces quote character in
79
* quoted string with string delimiter.
83
public void testBug14909() throws Exception {
84
assertEquals("select '{\"','}'", this.conn
85
.nativeSQL("select '{\"','}'"));