diff --git a/pgjdbc/src/test/java/org/postgresql/test/jdbc3/TypesTest.java b/pgjdbc/src/test/java/org/postgresql/test/jdbc3/TypesTest.java index d75c29bc005f898e0f8098aba2479d2cc99d4c25..25ac65d69b4d09380603255356e5f824a57ff4b1 100644 --- a/pgjdbc/src/test/java/org/postgresql/test/jdbc3/TypesTest.java +++ b/pgjdbc/src/test/java/org/postgresql/test/jdbc3/TypesTest.java @@ -22,6 +22,7 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Types; +import java.util.Properties; public class TypesTest extends BaseTest4 { @@ -30,6 +31,8 @@ public class TypesTest extends BaseTest4 { @Override public void setUp() throws Exception { super.setUp(); + Properties props = new Properties(); + updateProperties(props); _conn = con; Statement stmt = _conn.createStatement(); stmt.execute( @@ -45,6 +48,12 @@ public class TypesTest extends BaseTest4 { super.tearDown(); } + @Override + protected void updateProperties(Properties props) { + super.updateProperties(props); + props.setProperty("use_boolean", "true"); + } + @Test public void testPreparedBoolean() throws SQLException { PreparedStatement pstmt = _conn.prepareStatement("SELECT ?,?,?,?");