From: Michael Meskes Date: Tue, 14 Aug 2007 10:19:14 +0000 (+0000) Subject: As usual I forgot some files. :-) X-Git-Tag: REL8_3_BETA1~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=146242fc9cb1394460a3674e7df09fc195fbd0bb;p=postgresql As usual I forgot some files. :-) --- diff --git a/src/interfaces/ecpg/test/connect/Makefile b/src/interfaces/ecpg/test/connect/Makefile index 1e2d9f2e3e..1ca1cddadf 100644 --- a/src/interfaces/ecpg/test/connect/Makefile +++ b/src/interfaces/ecpg/test/connect/Makefile @@ -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 \ diff --git a/src/interfaces/ecpg/test/expected/connect-test1.c.in b/src/interfaces/ecpg/test/expected/connect-test1.c.in index 3bad2edfd4..0c7bacd5db 100644 --- a/src/interfaces/ecpg/test/expected/connect-test1.c.in +++ b/src/interfaces/ecpg/test/expected/connect-test1.c.in @@ -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");}