patch: ensure testdbencoding test table is dropped
| От | Oliver Jowett |
|---|---|
| Тема | patch: ensure testdbencoding test table is dropped |
| Дата | |
| Msg-id | 40FCAE7B.5050504@opencloud.com обсуждение исходный текст |
| Ответы |
Re: patch: ensure testdbencoding test table is dropped
Re: patch: ensure testdbencoding test table is dropped |
| Список | pgsql-jdbc |
Minor patch to make sure the testdbencoding test table is dropped
(otherwise it interferes with the table metadata test in subsequent runs).
-O
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 ----
В списке pgsql-jdbc по дате отправления: