]> granicus.if.org Git - postgresql/commitdiff
As usual I forgot some files. :-)
authorMichael Meskes <meskes@postgresql.org>
Tue, 14 Aug 2007 10:19:14 +0000 (10:19 +0000)
committerMichael Meskes <meskes@postgresql.org>
Tue, 14 Aug 2007 10:19:14 +0000 (10:19 +0000)
src/interfaces/ecpg/test/connect/Makefile
src/interfaces/ecpg/test/expected/connect-test1.c.in

index 1e2d9f2e3eae9c9588132aa4a5340886448f5eff..1ca1cddadf7fb06ce1b63478940547e1e90e2863 100644 (file)
@@ -10,6 +10,8 @@ TEMP_PORT = 4$(DEF_PGPORT)
 test1.pgc: test1.pgc.in
        sed -e 's,@TEMP_PORT@,$(TEMP_PORT),g' \
          $< >$@
+       sed -e 's,@TEMP_PORT@,$(TEMP_PORT),g' \
+         ../expected/connect-test1.c.in >../expected/connect-test1.c
 
 TESTS = test1 test1.c \
         test2 test2.c \
index 3bad2edfd4aac28c91bff843845c478f9fce63c1..0c7bacd5dbe1dd931d520849d13e8d87e23d100f 100644 (file)
@@ -40,7 +40,7 @@ main(void)
        { ECPGconnect(__LINE__, 0, "connectdb" , NULL, NULL , "main", 0); }
 #line 22 "test1.pgc"
 
-       { ECPGdo(__LINE__, 0, 1, NULL, "alter user connectuser  encrypted password 'connectpw'", ECPGt_EOIT, ECPGt_EORT);}
+       { ECPGdo(__LINE__, 0, 1, NULL, 0, 0, "alter user connectuser  encrypted password 'connectpw'", ECPGt_EOIT, ECPGt_EORT);}
 #line 23 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "CURRENT");}
@@ -105,7 +105,7 @@ main(void)
 
        strcpy(pw, "connectpw");
        strcpy(db, "tcp:postgresql://localhost:@TEMP_PORT@/connectdb");
-       { ECPGconnect(__LINE__, 0, db , "connectuser" , pw , NULL, 0); }
+       { ECPGconnect(__LINE__, 0, db , "connectuser" , " $1 " , NULL, 0); }
 #line 52 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "CURRENT");}