1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

doc: merge ecpg username/password example into C comment

Backpatch to 9.2

per Tom Lane
This commit is contained in:
Bruce Momjian
2013-01-25 13:46:38 -05:00
parent dc33b0961e
commit 6d5c62ad99

View File

@ -198,8 +198,7 @@ const char *passwd = "secret";
EXEC SQL END DECLARE SECTION;
...
EXEC SQL CONNECT TO :target USER :user USING :passwd;
EXEC SQL CONNECT TO :target USER :user/:passwd;
/* or EXEC SQL CONNECT TO :target USER :user/:passwd; */
</programlisting>
The last form makes use of the variant referred to above as
character variable reference. You will see in later sections how C