00001
00002
00003 #include <ecpglib.h>
00004 #include <ecpgerrno.h>
00005 #include <sqlca.h>
00006
00007 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
00008
00009 #line 1 "strings.pgc"
00010
00011 #line 1 "regression.h"
00012
00013
00014
00015
00016
00017
00018 #line 3 "strings.pgc"
00019
00020 #line 1 "strings.h"
00021
00022
00023
00024
00025
00026
00027
00028 #line 5 "strings.pgc"
00029
00030 #line 1 "strings.h"
00031 char * s1 , * s2 , * s3 , * s4 , * s5 , * s6 ;
00032
00033 #line 5 "strings.pgc"
00034
00035
00036 int main(void)
00037 {
00038 ECPGdebug(1, stderr);
00039
00040 { ECPGconnect(__LINE__, 0, "regress1" , NULL, NULL , NULL, 0); }
00041 #line 11 "strings.pgc"
00042
00043
00044 { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to on", ECPGt_EOIT, ECPGt_EORT);}
00045 #line 13 "strings.pgc"
00046
00047
00048 { 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,
00049 ECPGt_char,&(s1),(long)0,(long)1,(1)*sizeof(char),
00050 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
00051 ECPGt_char,&(s2),(long)0,(long)1,(1)*sizeof(char),
00052 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
00053 ECPGt_char,&(s3),(long)0,(long)1,(1)*sizeof(char),
00054 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
00055 ECPGt_char,&(s4),(long)0,(long)1,(1)*sizeof(char),
00056 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
00057 ECPGt_char,&(s5),(long)0,(long)1,(1)*sizeof(char),
00058 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
00059 ECPGt_char,&(s6),(long)0,(long)1,(1)*sizeof(char),
00060 ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);}
00061 #line 21 "strings.pgc"
00062
00063
00064 printf("%s %s %s %s %s %s\n", s1, s2, s3, s4, s5, s6);
00065
00066 { ECPGdisconnect(__LINE__, "CURRENT");}
00067 #line 25 "strings.pgc"
00068
00069 return (0);
00070 }