pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: patch: ensure testdbencoding test table is dropped
Date: Tue, 20 Jul 2004 17:32:43 +1200
Message-ID: <40FCAE7B.5050504@opencloud.com> (raw)

Minor patch to make sure the testdbencoding test table is dropped 
(otherwise it interferes with the table metadata test in subsequent runs).

-O

Attachments:

pgjdbc-drop-testdbencoding.txt (text/plain, 1.1K) download 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 ----

view thread (6+ messages)  latest in thread

Message-ID: <40FCAE7B.5050504@opencloud.com>
Permalink:  ../40FCAE7B.5050504@opencloud.com/
Also on:    postgresql.org/message-id/40FCAE7B.5050504@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com
  Subject: Re: patch: ensure testdbencoding test table is dropped
  In-Reply-To: <40FCAE7B.5050504@opencloud.com>
  References: <40FCAE7B.5050504@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox