Changes to epgc test

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: Changes to epgc test
Date: 2006-08-29 18:46:06
Message-ID: 607j0r1itt.fsf_-_@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)localhost as main;
exec sql disconnect main;

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

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

- exec sql connect to @localhost:@TEMP_PORT@ as main;
+ exec sql connect to connectdb(at)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(at)teal(dot)csn(dot)org on X interfaces.

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-08-29 20:10:12 Re: [HACKERS] [PATCHES] log_statement output for protocol
Previous Message Alvaro Herrera 2006-08-29 17:15:25 Re: Updatable views