On Mon, 3 Nov 2003, Dave Cramer wrote:
> CVSROOT: /cvsroot
> Module name: pgsql-server
> Changes by: [EMAIL PROTECTED] 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 [EMAIL PROTECTED]