File: mysqltest_escape.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (48 lines) | stat: -rw-r--r-- 1,835 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
==== R1: escape inserts backslash before character ====
<'"\\f\\o\\o"'>
<'\"\\f\\o\\o\"'>
<\'\"\\f\\o\\o\"\'>
==== R2: escape preserves leading and trailing whitespace ====
< h\ah\a >
<\ \ \ >
==== R3: escape(C,S) shall work if S is empty  ====
<>
==== R4.1: escape(C,S) shall work when C or S contains parentheses ====
< \hi\hi (\ha\ha)>
< hihi (haha\)>
< hihi \(haha)>
==== R4.2: escape(C,S) shall work when C or S contains comma ====
<,x,>
<\,x\,>
==== R4.3: escape(C,S) shall work when S contains newline ====
<


\ho\ho
\hu\hu

>
==== R5: escape shall work with multiple characters ====
<He\l\l\o, w\or\ld>
<Hell\o\, w\orld>
==== R6: escape(C,S) shall fail when C is newline ====
mysqltest: At line 1: Invalid format of 'escape' arguments: <(
,
foo
)>
==== R7.1: escape shall fail when opening parenthesis is wrong ====
mysqltest: At line 1: Invalid format of 'escape' arguments: < (a,aa)>
mysqltest: At line 1: Invalid format of 'escape' arguments: < a,aa)>
==== R7.2: escape shall fail when comma is wrong ====
mysqltest: At line 1: Invalid format of 'escape' arguments: <(aaa)>
mysqltest: At line 1: Invalid format of 'escape' arguments: <(,aaa)>
mysqltest: At line 1: Invalid format of 'escape' arguments: <(,)>
==== R7.3: escape shall fail when closing parenthesis is wrong ====
mysqltest: At line 1: Invalid format of 'escape' arguments: <(a,aa>
mysqltest: At line 1: Invalid format of 'escape' arguments: <(a,aa)a>
==== R7.4: escape shall fail when parentheses and comma are out of order ====
mysqltest: At line 1: Invalid format of 'escape' arguments: <,()>
mysqltest: At line 1: Invalid format of 'escape' arguments: <,)(>
mysqltest: At line 1: Invalid format of 'escape' arguments: <),(>
mysqltest: At line 1: Invalid format of 'escape' arguments: <(),>
mysqltest: At line 1: Invalid format of 'escape' arguments: <)(,>