Thread: Changes to epgc test

Changes to epgc test

From
Chris Browne
Date:
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.

Re: Changes to epgc test

From
Michael Meskes
Date:
On Tue, Aug 29, 2006 at 02:46:06PM -0400, Chris Browne wrote:
> 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.

Yor're right. It should cope with those. The database names were
ommitted by design.

It seems to me that it is working on the few buildfarm machines that
have it enabled so far. Mabye you still had an old preproc.y/preproc.c
around?

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!