1 /* Processed by ecpg (regression mode) */
2 /* These include files are added by the preprocessor */
3 #include <ecpglib.h>
4 #include <ecpgerrno.h>
5 #include <sqlca.h>
6 /* End of automatic include section */
7 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
8
9 #line 1 "strings.pgc"
10
11 #line 1 "regression.h"
12
13
14
15
16
17
18 #line 3 "strings.pgc"
19 /* exec sql begin declare section */
20 #line 1 "strings.h"
21
22
23
24
25
26
27
28
29
30 #line 5 "strings.pgc"
31
32 #line 1 "strings.h"
33 char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 , * s7 , * s8 ;
34 /* exec sql end declare section */
35 #line 5 "strings.pgc"
36
37
main(void)38 int main(void)
39 {
40 ECPGdebug(1, stderr);
41
42 { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
43 #line 11 "strings.pgc"
44
45
46 { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to on", ECPGt_EOIT, ECPGt_EORT);}
47 #line 13 "strings.pgc"
48
49
50 { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select 'abcdef' , N'abcdef' as foo , E'abc\\bdef' as \"foo\" , U&'d\\0061t\\0061' as U&\"foo\" , U&'d!+000061t!+000061' UESCAPE '!' , $foo$abc$def$foo$", ECPGt_EOIT,
51 ECPGt_char,&(s1),(long)0,(long)1,(1)*sizeof(char),
52 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
53 ECPGt_char,&(s2),(long)0,(long)1,(1)*sizeof(char),
54 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
55 ECPGt_char,&(s3),(long)0,(long)1,(1)*sizeof(char),
56 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
57 ECPGt_char,&(s4),(long)0,(long)1,(1)*sizeof(char),
58 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
59 ECPGt_char,&(s5),(long)0,(long)1,(1)*sizeof(char),
60 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
61 ECPGt_char,&(s6),(long)0,(long)1,(1)*sizeof(char),
62 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
63 #line 21 "strings.pgc"
64
65
66 printf("%s %s %s %s %s %s\n", s1, s2, s3, s4, s5, s6);
67
68 { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select b'0010' , x'019ABcd'", ECPGt_EOIT,
69 ECPGt_char,&(s7),(long)0,(long)1,(1)*sizeof(char),
70 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
71 ECPGt_char,&(s8),(long)0,(long)1,(1)*sizeof(char),
72 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
73 #line 26 "strings.pgc"
74
75
76 printf("%s %s\n", s7, s8);
77
78 { ECPGdisconnect(__LINE__, "CURRENT");}
79 #line 30 "strings.pgc"
80
81 return 0;
82 }
83