PostgreSQL Source Code: src/interfaces/ecpg/test/expected/preproc-strings.c Source File (original) (raw)

1

2

6

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

20#line 1 "strings.h"

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40#line 5 "strings.pgc"

41

42#line 2 "strings.h"

44

45#line 11 "strings.h"

47

48#line 5 "strings.pgc"

49

50

52{

54

55 { ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , NULL, 0); }

56#line 11 "strings.pgc"

57

58

60#line 13 "strings.pgc"

61

62

63 { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "select 'abc''d\\ef' , N'abc''d\\ef' as foo , E'abc''d\\\\ef' as \"foo\"\"bar\" , U&'d\\0061t\\0061' as U&\"foo\"\"bar\" , U&'d!+000061t!+000061' UESCAPE '!' , foofoofooabc$def$foo$", ECPGt_EOIT,

64 ECPGt_char,&(s1),(long)0,(long)1,(1)*sizeof(char),

66 ECPGt_char,&(s2),(long)0,(long)1,(1)*sizeof(char),

68 ECPGt_char,&(s3),(long)0,(long)1,(1)*sizeof(char),

70 ECPGt_char,&(s4),(long)0,(long)1,(1)*sizeof(char),

72 ECPGt_char,&(s5),(long)0,(long)1,(1)*sizeof(char),

74 ECPGt_char,&(s6),(long)0,(long)1,(1)*sizeof(char),

76#line 21 "strings.pgc"

77

78

80

82 ECPGt_char,&(s7),(long)0,(long)1,(1)*sizeof(char),

84 ECPGt_char,&(s8),(long)0,(long)1,(1)*sizeof(char),

86#line 26 "strings.pgc"

87

88

90

92#line 30 "strings.pgc"

93

94 return 0;

95}

bool ECPGdisconnect(int lineno, const char *connection_name)

bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)

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,...)