|
29 | 29 | output string |
30 | 30 | }{{ |
31 | 31 | input: "select 1", |
| 32 | + }, { |
| 33 | + input: "insert /* simple */ into a values (1)", |
32 | 34 | }, { |
33 | 35 | input: "select 1 from t", |
34 | 36 | }, { |
@@ -383,22 +385,20 @@ var ( |
383 | 385 | output: "select /* double quoted string */ 'a' from t", |
384 | 386 | }, { |
385 | 387 | input: "select /* quote quote in string */ 'a''a' from t", |
386 | | - output: "select /* quote quote in string */ 'a\\'a' from t", |
| 388 | + output: "select /* quote quote in string */ 'a''a' from t", |
387 | 389 | }, { |
388 | 390 | input: "select /* double quote quote in string */ \"a\"\"a\" from t", |
389 | 391 | output: "select /* double quote quote in string */ 'a\\\"a' from t", |
390 | 392 | }, { |
391 | 393 | input: "select /* quote in double quoted string */ \"a'a\" from t", |
392 | | - output: "select /* quote in double quoted string */ 'a\\'a' from t", |
| 394 | + output: "select /* quote in double quoted string */ 'a''a' from t", |
393 | 395 | }, { |
394 | | - input: "select /* backslash quote in string */ 'a\\'a' from t", |
| 396 | + input: "select /* backslash quote in string */ 'a''a' from t", |
| 397 | + output: "select /* backslash quote in string */ 'a''a' from t", |
395 | 398 | }, { |
396 | 399 | input: "select /* literal backslash in string */ 'a\\\\na' from t", |
397 | | - }, { |
398 | | - input: "select /* all escapes */ '\\0\\'\\\"\\b\\n\\r\\t\\Z\\\\' from t", |
399 | 400 | }, { |
400 | 401 | input: "select /* non-escape */ '\\x' from t", |
401 | | - output: "select /* non-escape */ 'x' from t", |
402 | 402 | }, { |
403 | 403 | input: "select /* unescaped backslash */ '\\n' from t", |
404 | 404 | }, { |
@@ -494,8 +494,6 @@ var ( |
494 | 494 | output: "select 1 from t", |
495 | 495 | }, { |
496 | 496 | input: "select /* dual */ 1 from dual", |
497 | | - }, { |
498 | | - input: "insert /* simple */ into a values (1)", |
499 | 497 | }, { |
500 | 498 | input: "insert /* a.b */ into a.b values (1)", |
501 | 499 | }, { |
@@ -1208,7 +1206,7 @@ var ( |
1208 | 1206 | excludeMulti: true, |
1209 | 1207 | }, { |
1210 | 1208 | input: "select 'aa\\", |
1211 | | - output: "syntax error at position 12 near 'aa'", |
| 1209 | + output: "syntax error at position 12 near 'aa\\'", |
1212 | 1210 | excludeMulti: true, |
1213 | 1211 | }, { |
1214 | 1212 | input: "select /* aa", |
|
0 commit comments