PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
preproc-strings.c
Go to the documentation of this file.
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 #line 5 "strings.pgc"
29 
30 #line 1 "strings.h"
31  char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 ;
32 /* exec sql end declare section */
33 #line 5 "strings.pgc"
34 
35 
36 int main(void)
37 {
38  ECPGdebug(1, stderr);
39 
40  { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }
41 #line 11 "strings.pgc"
42 
43 
44  { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to on", ECPGt_EOIT, ECPGt_EORT);}
45 #line 13 "strings.pgc"
46 
47 
48  { 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,
49  ECPGt_char,&(s1),(long)0,(long)1,(1)*sizeof(char),
50  ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
51  ECPGt_char,&(s2),(long)0,(long)1,(1)*sizeof(char),
52  ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
53  ECPGt_char,&(s3),(long)0,(long)1,(1)*sizeof(char),
54  ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
55  ECPGt_char,&(s4),(long)0,(long)1,(1)*sizeof(char),
56  ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
57  ECPGt_char,&(s5),(long)0,(long)1,(1)*sizeof(char),
58  ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
59  ECPGt_char,&(s6),(long)0,(long)1,(1)*sizeof(char),
60  ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
61 #line 21 "strings.pgc"
62 
63 
64  printf("%s %s %s %s %s %s\n", s1, s2, s3, s4, s5, s6);
65 
66  { ECPGdisconnect(__LINE__, "CURRENT");}
67 #line 25 "strings.pgc"
68 
69  return 0;
70 }
bool ECPGdisconnect(int lineno, const char *connection_name)
Definition: connect.c:669
bool ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)
Definition: execute.c:2030
char * s5
char * s6
char * s3
char * s1
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
Definition: connect.c:271
char * s2
char * s4
int main(void)
#define ECPGdebug(X, Y)