We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8936867 commit 88886c7Copy full SHA for 88886c7
doc/src/sgml/ecpg.sgml
@@ -194,9 +194,12 @@ EXEC SQL CONNECT TO unix:postgresql://sql.mydomain.com/mydb AS myconnection USER
194
EXEC SQL BEGIN DECLARE SECTION;
195
const char *target = "mydb@sql.mydomain.com";
196
const char *user = "john";
197
+const char *passwd = "secret";
198
EXEC SQL END DECLARE SECTION;
199
...
-EXEC SQL CONNECT TO :target USER :user;
200
+EXEC SQL CONNECT TO :target USER :user USING :passwd;
201
+
202
+EXEC SQL CONNECT TO :target USER :user/:passwd;
203
</programlisting>
204
The last form makes use of the variant referred to above as
205
character variable reference. You will see in later sections how C
0 commit comments