Skip site navigation (1) Skip section navigation (2)

Re: pgsql-server/src/interfaces/jdbc build.xml org ...

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Dave Cramer <davec(at)svr1(dot)postgresql(dot)org>,pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/src/interfaces/jdbc build.xml org ...
Date: 2003-11-05 17:16:36
Message-ID: 1068052597.10947.3171.camel@camel (view raw or flat)
Thread:
Lists: pgsql-committers
Did this or the previous changes ever make it to 7.4?

Robert Treat

On Mon, 2003-11-03 at 23:02, Kris Jurka wrote:
> 
> 
> On Mon, 3 Nov 2003, Dave Cramer wrote:
> 
> > CVSROOT:	/cvsroot
> > Module name:	pgsql-server
> > Changes by:	davec(at)svr1(dot)postgresql(dot)org	03/11/03 11:28:26
> >
> > Modified files:
> > 	src/interfaces/jdbc: build.xml
> > 	src/interfaces/jdbc/org/postgresql/jdbc2:
> > 	                                          AbstractJdbc2ResultSet.java
> > 	src/interfaces/jdbc/org/postgresql/test/jdbc2:
> > 	                                               ResultSetTest.java
> > 	src/interfaces/jdbc/org/postgresql/test/jdbc2/optional:
> > 	                                                        ConnectionPoolTest.java
> > 	                                                        PoolingDataSourceTest.java
> > 	                                                        SimpleDataSourceTest.java
> > 	src/interfaces/jdbc/org/postgresql/test/jdbc3:
> > 	                                               Jdbc3ConnectionPoolTest.java
> > 	                                               Jdbc3PoolingDataSourceTest.java
> > 	                                               Jdbc3SimpleDataSourceTest.java
> >
> > Log message:
> > 	patch for rs.previous and test case as well as patch for allowing server and port to be specified in test cases
> >
> >
> 
> 
> I apparently did not include the changes to
> org.postgresql.test.TestUtil and the JDBC test suite no longer builds.
> 
> Please apply.
> 
> Kris Jurka
> 
> ----
> 

> Index: src/interfaces/jdbc/org/postgresql/test/TestUtil.java
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/org/postgresql/test/TestUtil.java,v
> retrieving revision 1.3
> diff -c -r1.3 TestUtil.java
> *** src/interfaces/jdbc/org/postgresql/test/TestUtil.java	1 Oct 2002 00:39:02 -0000	1.3
> --- src/interfaces/jdbc/org/postgresql/test/TestUtil.java	4 Nov 2003 03:57:57 -0000
> ***************
> *** 13,18 ****
> --- 13,42 ----
>   	 */
>   	public static String getURL()
>   	{
> + 		return "jdbc:postgresql://"+getServer()+":"+getPort()+"/"+getDatabase();
> + 	}
> + 
> + 	/*
> + 	 * Returns the Test server
> + 	 */
> + 	public static String getServer()
> + 	{
> + 		return System.getProperty("server");
> + 	}
> + 
> + 	/*
> + 	 * Returns the Test port
> + 	 */
> + 	public static int getPort()
> + 	{
> + 		return Integer.parseInt(System.getProperty("port"));
> + 	}
> + 
> + 	/*
> + 	 * Returns the Test database
> + 	 */
> + 	public static String getDatabase()
> + 	{
>   		return System.getProperty("database");
>   	}
>   
> ----
> 

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL


In response to

pgsql-committers by date

Next:From: Tom LaneDate: 2003-11-05 22:00:46
Subject: pgsql-server/src/backend optimizer/plan/initsp ...
Previous:From: Dave CramerDate: 2003-11-05 11:57:54
Subject: pgsql-server/src/interfaces/jdbc/org/postgresq ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group