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 \
 
    { 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");}
 
    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");}