Skip to content

Commit 146242f

Browse files
author
Michael Meskes
committed
As usual I forgot some files. :-)
1 parent 635a0b9 commit 146242f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/interfaces/ecpg/test/connect/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ TEMP_PORT = 4$(DEF_PGPORT)
1010
test1.pgc: test1.pgc.in
1111
sed -e 's,@TEMP_PORT@,$(TEMP_PORT),g' \
1212
$< >$@
13+
sed -e 's,@TEMP_PORT@,$(TEMP_PORT),g' \
14+
../expected/connect-test1.c.in >../expected/connect-test1.c
1315

1416
TESTS = test1 test1.c \
1517
test2 test2.c \

src/interfaces/ecpg/test/expected/connect-test1.c.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ main(void)
4040
{ ECPGconnect(__LINE__, 0, "connectdb" , NULL, NULL , "main", 0); }
4141
#line 22 "test1.pgc"
4242

43-
{ ECPGdo(__LINE__, 0, 1, NULL, "alter user connectuser encrypted password 'connectpw'", ECPGt_EOIT, ECPGt_EORT);}
43+
{ ECPGdo(__LINE__, 0, 1, NULL, 0, 0, "alter user connectuser encrypted password 'connectpw'", ECPGt_EOIT, ECPGt_EORT);}
4444
#line 23 "test1.pgc"
4545

4646
{ ECPGdisconnect(__LINE__, "CURRENT");}
@@ -105,7 +105,7 @@ main(void)
105105

106106
strcpy(pw, "connectpw");
107107
strcpy(db, "tcp:postgresql://localhost:@TEMP_PORT@/connectdb");
108-
{ ECPGconnect(__LINE__, 0, db , "connectuser" , pw , NULL, 0); }
108+
{ ECPGconnect(__LINE__, 0, db , "connectuser" , " $1 " , NULL, 0); }
109109
#line 52 "test1.pgc"
110110

111111
{ ECPGdisconnect(__LINE__, "CURRENT");}

0 commit comments

Comments
 (0)