X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 49731D1B179 for ; Tue, 20 Jul 2004 02:32:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87420-06 for ; Tue, 20 Jul 2004 05:32:48 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 7FE18D1B16E for ; Tue, 20 Jul 2004 02:32:46 -0300 (ADT) Received: from flood.opencloud.co.nz ([192.168.0.31] helo=opencloud.com ident=oliver) by yass.opencloud.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1BmnF7-000845-00 for ; Tue, 20 Jul 2004 17:32:45 +1200 Message-ID: <40FCAE7B.5050504@opencloud.com> Date: Tue, 20 Jul 2004 17:32:43 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-jdbc@postgresql.org" Subject: patch: ensure testdbencoding test table is dropped Content-Type: multipart/mixed; boundary="------------080804000304080005060605" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200407/236 X-Sequence-Number: 10620 This is a multi-part message in MIME format. --------------080804000304080005060605 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Minor patch to make sure the testdbencoding test table is dropped (otherwise it interferes with the table metadata test in subsequent runs). -O --------------080804000304080005060605 Content-Type: text/plain; name="pgjdbc-drop-testdbencoding.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pgjdbc-drop-testdbencoding.txt" Index: org/postgresql/test/jdbc2/DatabaseEncodingTest.java =================================================================== RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/test/jdbc2/DatabaseEncodingTest.java,v retrieving revision 1.1 diff -u -c -r1.1 DatabaseEncodingTest.java *** org/postgresql/test/jdbc2/DatabaseEncodingTest.java 17 Jul 2004 07:39:43 -0000 1.1 --- org/postgresql/test/jdbc2/DatabaseEncodingTest.java 20 Jul 2004 05:30:47 -0000 *************** *** 26,36 **** --- 26,38 ---- TestUtil.createTable(con, "testdbencoding", "unicode_ordinal integer primary key not null, unicode_string varchar(" + STEP + ")"); + con.setAutoCommit(false); } // Tear down the fixture for this test case. protected void tearDown() throws Exception { + con.setAutoCommit(true); TestUtil.dropTable(con, "testdbencoding"); TestUtil.closeDB(con); } *************** *** 60,67 **** rs.close(); - con.setAutoCommit(false); // Go faster! - // Create data. // NB: we only test up to d800 as code points above that are // reserved for surrogates in UTF-16 --- 62,67 ---- --------------080804000304080005060605--