]> granicus.if.org Git - postgresql/blobdiff - src/interfaces/ecpg/test/expected/connect-test1.c.in
also adjust MinGW expected file to new setup
[postgresql] / src / interfaces / ecpg / test / expected / connect-test1.c.in
similarity index 69%
rename from src/interfaces/ecpg/test/expected/connect-test1.c
rename to src/interfaces/ecpg/test/expected/connect-test1.c.in
index aee8e26f1bfe033a8a04e35404aacb194145da45..f37475199e406a5fa8d0a9ee217ba5bdaf71b797 100644 (file)
@@ -61,42 +61,42 @@ main(void)
 #line 30 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, "connectdb@localhost:55432" , NULL,NULL , "main", 0); }
+       { ECPGconnect(__LINE__, 0, "connectdb@localhost:@TEMP_PORT@" , NULL,NULL , "main", 0); }
 #line 32 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "main");}
 #line 33 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, "@localhost:55432" , "connectdb" , NULL , "main", 0); }
+       { ECPGconnect(__LINE__, 0, "@localhost:@TEMP_PORT@" , "connectdb" , NULL , "main", 0); }
 #line 35 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "main");}
 #line 36 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, "connectdb:55432" , NULL,NULL , "main", 0); }
+       { ECPGconnect(__LINE__, 0, "connectdb:@TEMP_PORT@" , NULL,NULL , "main", 0); }
 #line 38 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "main");}
 #line 39 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, ":55432" , "connectdb" , NULL , "main", 0); }
+       { ECPGconnect(__LINE__, 0, ":@TEMP_PORT@" , "connectdb" , NULL , "main", 0); }
 #line 41 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "main");}
 #line 42 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost:55432/connectdb" , "connectuser" , "connectpw" , NULL, 0); }
+       { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost:@TEMP_PORT@/connectdb" , "connectuser" , "connectpw" , NULL, 0); }
 #line 44 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "CURRENT");}
 #line 45 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost:55432/" , "connectdb" , NULL , NULL, 0); }
+       { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost:@TEMP_PORT@/" , "connectdb" , NULL , NULL, 0); }
 #line 47 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "CURRENT");}
@@ -104,7 +104,7 @@ main(void)
 
 
        strcpy(pw, "connectpw");
-       strcpy(db, "tcp:postgresql://localhost:55432/connectdb");
+       strcpy(db, "tcp:postgresql://localhost:@TEMP_PORT@/connectdb");
        { ECPGconnect(__LINE__, 0, db , "connectuser" , pw , NULL, 0); }
 #line 52 "test1.pgc"
 
@@ -112,14 +112,14 @@ main(void)
 #line 53 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost:55432/connectdb" , "connectuser" , "connectpw" , NULL, 0); }
+       { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost:@TEMP_PORT@/connectdb" , "connectuser" , "connectpw" , NULL, 0); }
 #line 55 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "CURRENT");}
 #line 56 "test1.pgc"
 
 
-       { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost:55432/connectdb" , "connectuser" , NULL , NULL, 0); }
+       { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost:@TEMP_PORT@/connectdb" , "connectuser" , NULL , NULL, 0); }
 #line 58 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "CURRENT");}
@@ -127,7 +127,7 @@ main(void)
 
 
        /* wrong db */
-       { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost:55432/nonexistant" , "connectuser" , "connectpw" , NULL, 0); }
+       { ECPGconnect(__LINE__, 0, "tcp:postgresql://localhost:@TEMP_PORT@/nonexistant" , "connectuser" , "connectpw" , NULL, 0); }
 #line 62 "test1.pgc"
 
        { ECPGdisconnect(__LINE__, "CURRENT");}
@@ -141,7 +141,7 @@ main(void)
        /* no disconnect necessary */
 
        /* wrong password */
-       { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost:55432/connectdb" , "connectuser" , "wrongpw" , NULL, 0); }
+       { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost:@TEMP_PORT@/connectdb" , "connectuser" , "wrongpw" , NULL, 0); }
 #line 70 "test1.pgc"
 
        /* no disconnect necessary */