doc: merge ecpg username/password example into C comment
authorBruce Momjian
Fri, 25 Jan 2013 18:46:38 +0000 (13:46 -0500)
committerBruce Momjian
Fri, 25 Jan 2013 18:46:38 +0000 (13:46 -0500)
Backpatch to 9.2

per Tom Lane

doc/src/sgml/ecpg.sgml

index bf01857a4c2432851069f6ffe6da9271133cbc56..4d904cdeb8815cbbcdf0c0fd84ade6de8c9830ae 100644 (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; */
 
    The last form makes use of the variant referred to above as
    character variable reference.  You will see in later sections how C