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