~ubuntu-branches/ubuntu/maverick/libpgjava/maverick

« back to all changes in this revision

Viewing changes to org/postgresql/test/jdbc3/TypesTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2008-04-26 22:01:11 UTC
  • mfrom: (3.1.4 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080426220111-yasgxtas5smx2qm3
Tags: 8.2-504-2
* Updated description to mention PostgreSQL 8.3 as supported.
  Closes: #398348
* Removed libpgjava transitional package. Closes: #477557
* Moved debhelper and cdbs from Build-Depends-Indep to Build-Depends.
* Added Homepage, Vcs-Svn and Vcs-Browser fields.
* Added watch file.
* Added myself to Uploaders.
* Removed Stafan and Wolfgang from Uploaders.
* Updated Standards-Version to 3.7.3
* Updated debhelper level to 5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
4
4
*
5
5
* IDENTIFICATION
6
 
*   $PostgreSQL: pgjdbc/org/postgresql/test/jdbc3/TypesTest.java,v 1.7 2005/07/04 18:50:30 davec Exp $
 
6
*   $PostgreSQL: pgjdbc/org/postgresql/test/jdbc3/TypesTest.java,v 1.9 2006/05/15 09:35:57 jurka Exp $
7
7
*
8
8
*-------------------------------------------------------------------------
9
9
*/
29
29
        }
30
30
    }
31
31
 
32
 
    protected void setUp() throws SQLException {
 
32
    protected void setUp() throws Exception {
33
33
        _conn = TestUtil.openDB();
34
34
        Statement stmt = _conn.createStatement();
35
35
        stmt.execute("CREATE OR REPLACE FUNCTION return_bool(boolean) RETURNS boolean AS 'BEGIN RETURN $1; END;' LANGUAGE 'plpgsql'");
58
58
        // Only the V3 protocol return will be strongly typed.
59
59
        // The V2 path will return a String because it doesn't know
60
60
        // any better.
61
 
        if (TestUtil.haveMinimumServerVersion(_conn, "7.4"))
 
61
        if (TestUtil.isProtocolVersion(_conn, 3))
62
62
        {
63
63
            assertTrue(!((Boolean)rs.getObject(4)).booleanValue());
64
64
        }