@@ -25,121 +25,125 @@ main(void)
25
25
/* exec sql begin declare section */
26
26
27
27
28
+
28
29
29
30
#line 16 "test5.pgc"
30
31
char db [ 200 ] ;
31
32
32
33
#line 17 "test5.pgc"
33
34
char id [ 200 ] ;
34
- /* exec sql end declare section */
35
+
35
36
#line 18 "test5.pgc"
37
+ char * user = "connectuser" ;
38
+ /* exec sql end declare section */
39
+ #line 19 "test5.pgc"
36
40
37
41
38
42
ECPGdebug (1 , stderr );
39
43
40
44
{ ECPGconnect (__LINE__ , 0 , "connectdb" , NULL , NULL , "main" , 0 ); }
41
- #line 22 "test5.pgc"
45
+ #line 23 "test5.pgc"
42
46
43
47
{ ECPGdo (__LINE__ , 0 , 1 , NULL , 0 , ECPGst_normal , "alter user connectuser encrypted password 'connectpw'" , ECPGt_EOIT , ECPGt_EORT );}
44
- #line 23 "test5.pgc"
48
+ #line 24 "test5.pgc"
45
49
46
50
{ ECPGdisconnect (__LINE__ , "CURRENT" );}
47
- #line 24 "test5.pgc"
51
+ #line 25 "test5.pgc"
48
52
/* <-- "main" not specified */
49
53
50
54
strcpy (db , "connectdb" );
51
55
strcpy (id , "main" );
52
56
{ ECPGconnect (__LINE__ , 0 , db , NULL , NULL , id , 0 ); }
53
- #line 28 "test5.pgc"
57
+ #line 29 "test5.pgc"
54
58
55
59
{ ECPGdisconnect (__LINE__ , id );}
56
- #line 29 "test5.pgc"
60
+ #line 30 "test5.pgc"
57
61
58
62
59
63
{ ECPGconnect (__LINE__ , 0 , "connectdb" , NULL , NULL , "main" , 0 ); }
60
- #line 31 "test5.pgc"
64
+ #line 32 "test5.pgc"
61
65
62
66
{ ECPGdisconnect (__LINE__ , "main" );}
63
- #line 32 "test5.pgc"
67
+ #line 33 "test5.pgc"
64
68
65
69
66
70
{ ECPGconnect (__LINE__ , 0 , "connectdb" , NULL , NULL , "main" , 0 ); }
67
- #line 34 "test5.pgc"
71
+ #line 35 "test5.pgc"
68
72
69
73
{ ECPGdisconnect (__LINE__ , "main" );}
70
- #line 35 "test5.pgc"
74
+ #line 36 "test5.pgc"
71
75
72
76
73
77
{ ECPGconnect (__LINE__ , 0 , "connectdb" , NULL , NULL , "main" , 0 ); }
74
- #line 37 "test5.pgc"
78
+ #line 38 "test5.pgc"
75
79
76
80
{ ECPGdisconnect (__LINE__ , "main" );}
77
- #line 38 "test5.pgc"
81
+ #line 39 "test5.pgc"
78
82
79
83
80
84
{ ECPGconnect (__LINE__ , 0 , "" , "connectdb" , NULL , "main" , 0 ); }
81
- #line 40 "test5.pgc"
85
+ #line 41 "test5.pgc"
82
86
83
87
{ ECPGdisconnect (__LINE__ , "main" );}
84
- #line 41 "test5.pgc"
88
+ #line 42 "test5.pgc"
85
89
86
90
87
91
{ ECPGconnect (__LINE__ , 0 , "connectdb" , "connectuser" , "connectdb" , "main" , 0 ); }
88
- #line 43 "test5.pgc"
92
+ #line 44 "test5.pgc"
89
93
90
94
{ ECPGdisconnect (__LINE__ , "main" );}
91
- #line 44 "test5.pgc"
95
+ #line 45 "test5.pgc"
92
96
93
97
94
98
{ ECPGconnect (__LINE__ , 0 , "unix:postgresql://localhost/connectdb" , "connectuser" , NULL , "main" , 0 ); }
95
- #line 46 "test5.pgc"
99
+ #line 47 "test5.pgc"
96
100
97
101
{ ECPGdisconnect (__LINE__ , "main" );}
98
- #line 47 "test5.pgc"
102
+ #line 48 "test5.pgc"
99
103
100
104
101
105
{ ECPGconnect (__LINE__ , 0 , "unix:postgresql://localhost/connectdb" , "connectuser" , NULL , "main" , 0 ); }
102
- #line 49 "test5.pgc"
106
+ #line 50 "test5.pgc"
103
107
104
108
{ ECPGdisconnect (__LINE__ , "main" );}
105
- #line 50 "test5.pgc"
109
+ #line 51 "test5.pgc"
106
110
107
111
108
- { ECPGconnect (__LINE__ , 0 , "unix:postgresql://localhost/connectdb" , "connectuser" , NULL , "main" , 0 ); }
109
- #line 52 "test5.pgc"
112
+ { ECPGconnect (__LINE__ , 0 , "unix:postgresql://localhost/connectdb" , user , NULL , "main" , 0 ); }
113
+ #line 53 "test5.pgc"
110
114
111
115
{ ECPGdisconnect (__LINE__ , "main" );}
112
- #line 53 "test5.pgc"
116
+ #line 54 "test5.pgc"
113
117
114
118
115
119
{ ECPGconnect (__LINE__ , 0 , "unix:postgresql://200.46.204.71/connectdb" , "connectuser" , NULL , "main" , 0 ); }
116
- #line 55 "test5.pgc"
120
+ #line 56 "test5.pgc"
117
121
118
122
{ ECPGdisconnect (__LINE__ , "main" );}
119
- #line 56 "test5.pgc"
123
+ #line 57 "test5.pgc"
120
124
121
125
122
126
{ ECPGconnect (__LINE__ , 0 , "unix:postgresql://localhost/" , "connectdb" , NULL , "main" , 0 ); }
123
- #line 58 "test5.pgc"
127
+ #line 59 "test5.pgc"
124
128
125
129
{ ECPGdisconnect (__LINE__ , "main" );}
126
- #line 59 "test5.pgc"
130
+ #line 60 "test5.pgc"
127
131
128
132
129
133
/* connect twice */
130
134
{ ECPGconnect (__LINE__ , 0 , "connectdb" , NULL , NULL , "main" , 0 ); }
131
- #line 62 "test5.pgc"
135
+ #line 63 "test5.pgc"
132
136
133
137
{ ECPGconnect (__LINE__ , 0 , "connectdb" , NULL , NULL , "main" , 0 ); }
134
- #line 63 "test5.pgc"
138
+ #line 64 "test5.pgc"
135
139
136
140
{ ECPGdisconnect (__LINE__ , "main" );}
137
- #line 64 "test5.pgc"
141
+ #line 65 "test5.pgc"
138
142
139
143
140
144
/* not connected */
141
145
{ ECPGdisconnect (__LINE__ , "nonexistant" );}
142
- #line 67 "test5.pgc"
146
+ #line 68 "test5.pgc"
143
147
144
148
145
149
return (0 );
0 commit comments