This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL7_4_1 in repository libpostgresql-jdbc-java.
commit 2d3f36805608aa2a41d3fc85c7bc0c1e43dfb0b3 Author: Dave Cramer <[email protected]> Date: Thu Dec 18 04:18:15 2003 +0000 patch for new OID74Test --- org/postgresql/test/TestUtil.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/org/postgresql/test/TestUtil.java b/org/postgresql/test/TestUtil.java index 6b13943..9ef0c7d 100644 --- a/org/postgresql/test/TestUtil.java +++ b/org/postgresql/test/TestUtil.java @@ -2,6 +2,7 @@ package org.postgresql.test; import java.sql.*; import junit.framework.TestCase; +import java.util.Properties; /* * Utility class for JDBC tests @@ -61,10 +62,21 @@ public class TestUtil */ public static java.sql.Connection openDB() { + return openDB(new Properties()); + } + + /* + * Helper - opens a connection with the allowance for passing + * additional parameters, like "compatible". + */ + public static java.sql.Connection openDB(Properties props) + { + props.setProperty("user",getUser()); + props.setProperty("password",getPassword()); try { Class.forName("org.postgresql.Driver"); - return java.sql.DriverManager.getConnection(getURL(), getUser(), getPassword()); + return java.sql.DriverManager.getConnection(getURL(), props); } catch (ClassNotFoundException ex) { -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

