Changes to epgc test - Mailing list pgsql-patches

From Chris Browne
Subject Changes to epgc test
Date
Msg-id 607j0r1itt.fsf_-_@dba2.int.libertyrms.com
Whole thread Raw
Responses Re: Changes to epgc test  (Michael Meskes <meskes@postgresql.org>)
List pgsql-patches
I'm not at all sure that these are the right changes to apply; it
somewhat appears to me as though ecpg is supposed to be able to cope
with the omissions.

In any case, CVS HEAD is breaking on AIX 5.3 with GCC 4.1.1, and these
are the places where it's breaking.

Index: test1.pgc.in
===================================================================
RCS file: /projects/cvsroot/pgsql/src/interfaces/ecpg/test/connect/test1.pgc.in,v
retrieving revision 1.3
diff -u -r1.3 test1.pgc.in
--- test1.pgc.in        29 Aug 2006 12:24:51 -0000      1.3
+++ test1.pgc.in        29 Aug 2006 18:42:25 -0000
@@ -26,25 +26,25 @@
        exec sql connect to connectdb@localhost as main;
        exec sql disconnect main;

-       exec sql connect to @localhost as main;
+       exec sql connect to connectdb@localhost as main;
        exec sql disconnect main;

        exec sql connect to connectdb@localhost:@TEMP_PORT@ as main;
        exec sql disconnect main;

-       exec sql connect to @localhost:@TEMP_PORT@ as main;
+       exec sql connect to connectdb@localhost:@TEMP_PORT@ as main;
        exec sql disconnect main;

        exec sql connect to connectdb:@TEMP_PORT@ as main;
        exec sql disconnect main;

-       exec sql connect to :@TEMP_PORT@ as main;
+       exec sql connect to connectdb:@TEMP_PORT@ as main;
        exec sql disconnect main;

        exec sql connect to tcp:postgresql://localhost:@TEMP_PORT@/connectdb user connectuser identified by connectpw;
        exec sql disconnect;

-       exec sql connect to tcp:postgresql://localhost:@TEMP_PORT@/ user connectdb;
+       exec sql connect to "tcp:postgresql://localhost:@TEMP_PORT@/" user connectdb;
        exec sql disconnect;

        strcpy(pw, "connectpw");
Index: test5.pgc
===================================================================
RCS file: /projects/cvsroot/pgsql/src/interfaces/ecpg/test/connect/test5.pgc,v
retrieving revision 1.2
diff -u -r1.2 test5.pgc
--- test5.pgc   29 Aug 2006 12:24:51 -0000      1.2
+++ test5.pgc   29 Aug 2006 18:42:25 -0000
@@ -37,7 +37,7 @@
        exec sql connect to 'connectdb' as main;
        exec sql disconnect main;

-       exec sql connect to as main user connectdb;
+       exec sql connect to connectdb as main user connectdb;
        exec sql disconnect main;

        exec sql connect to connectdb as main user connectuser/connectdb;
@@ -55,7 +55,7 @@
        exec sql connect to "unix:postgresql://200.46.204.71/connectdb" as main user connectuser;
        exec sql disconnect main;

-       exec sql connect to unix:postgresql://localhost/ as main user connectdb;
+       exec sql connect to "unix:postgresql://localhost/" as main user connectdb;
        exec sql disconnect main;

        /* connect twice */
--
output = reverse("gro.mca" "@" "enworbbc")
http://cbbrowne.com/info/linuxxian.html
"The only ``intuitive'' interface is the nipple. After that, it's all
learned."  -- Bruce Ediger, bediger@teal.csn.org on X interfaces.

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Updatable views
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] log_statement output for protocol