projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e93959
)
doc: merge ecpg username/password example into C comment
author
Bruce Momjian
Fri, 25 Jan 2013 18:46:38 +0000
(13:46 -0500)
committer
Bruce Momjian
Fri, 25 Jan 2013 18:46:38 +0000
(13:46 -0500)
Backpatch to 9.2
per Tom Lane
doc/src/sgml/ecpg.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/ecpg.sgml
b/doc/src/sgml/ecpg.sgml
index bf01857a4c2432851069f6ffe6da9271133cbc56..4d904cdeb8815cbbcdf0c0fd84ade6de8c9830ae 100644
(file)
--- a/
doc/src/sgml/ecpg.sgml
+++ b/
doc/src/sgml/ecpg.sgml
@@
-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; */
The last form makes use of the variant referred to above as
character variable reference. You will see in later sections how C