From f300354de9fe5d997850456a9e1f400193e6544f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 26 Aug 2024 12:00:09 +0100 Subject: gentoo auto-resync : 26:08:2024 - 12:00:09 --- dev-db/hsqldb/Manifest | 2 - dev-db/hsqldb/files/StringComparator.java | 53 ------------ dev-db/hsqldb/files/TestBug1191815.java | 129 ------------------------------ 3 files changed, 184 deletions(-) delete mode 100644 dev-db/hsqldb/files/StringComparator.java delete mode 100644 dev-db/hsqldb/files/TestBug1191815.java (limited to 'dev-db/hsqldb') diff --git a/dev-db/hsqldb/Manifest b/dev-db/hsqldb/Manifest index fcbba860cc53..3c5b657b8dba 100644 --- a/dev-db/hsqldb/Manifest +++ b/dev-db/hsqldb/Manifest @@ -1,5 +1,3 @@ -AUX StringComparator.java 1986 BLAKE2B e86079c260e0732c8828626de3c3d1611376377c228c8efb28739dff5f82cbe26ed2a06f9bf6c2214e44a291c1af51e6cb2044fc639aaafb54e356fe6b978dc8 SHA512 a0103b0b8445bfbbe325c73ab65dcf4c22c8fd4dab89cd9d60809b4323263e62da2c20a0c1f2900ee97eb9ca2549730e1d37b7f1bffdfce3d116ca802fe8beaa -AUX TestBug1191815.java 4112 BLAKE2B f8418d564f7489e3dd256e9783624ef66994875d2509ccd66972ed5704281ae9770df7f7521ec56ab66b44af142ff4a6a846fb9d04d768b2a0b2c5f78b9c6b7f SHA512 c37491e2fcea0b4ce6bd641ffe128deaa9a8e38533ec3e607415cb1325a975dd8317c212c0fbf9f42b25de7808869df6ac63dacd53c773455f5d2ca0a58f1f62 AUX hsqldb 364 BLAKE2B 236ae5fff19eaf9c4aa184bf1228bd96c7841c8c1849d35d72be02d43b955be003c54a96fc9d792208a38c388609d3dce34a5ef1e2c36b9283dd69a545cc3e2d SHA512 6cd0a4a26739960536192a9dda36324e10a16e4ed51028515f07ca5542c68a9f13d9ee9456faf7f797071476747b2026cdf5872ebdf20c1fbfda1079c4164716 AUX hsqldb-2.7.3-hsqldb.conf.patch 1285 BLAKE2B 380066dde2adb7f336bd14edf2c52c6bdb57c1f32a419649ec7a7d02c56cdd9cf19fce2978c944cd520759c5b9255c1bc44952bf5deb8c74b41e8e6861d9af8c SHA512 19124e4835b80e2bdb9c3db57ef1f8620fd8c4716205f7ddb22b5618b8eb6e298227131cc66c97c426f39734e0f04223b0b9b71a68b806232d7447a1c90d0fa2 AUX hsqldb-2.7.3-hsqldb.init.patch 740 BLAKE2B 948afb9bb1404d34f767bebd2010fdea92d065c3fd645e0c2b9968a359e55f66af14a803fa02fbe7b417f6453ea875aa9cc67ae5eaa0700291e3765ba1979f40 SHA512 b6de0367e9f6da039976ae6ec81368fbf6982844d76377364b16a27c4d94d4f60c6b1792bcae65fa42f7febdf17b9b5c8dfd5bcc0064e345ba27b863d2d4ec74 diff --git a/dev-db/hsqldb/files/StringComparator.java b/dev-db/hsqldb/files/StringComparator.java deleted file mode 100644 index ae0f7b0fb979..000000000000 --- a/dev-db/hsqldb/files/StringComparator.java +++ /dev/null @@ -1,53 +0,0 @@ -/* Copyright (c) 2001-2008, The HSQL Development Group - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * Neither the name of the HSQL Development Group nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, - * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - -package org.hsqldb.lib; - -public class StringComparator implements ObjectComparator { - - public int compare(Object a, Object b) { - - // handle nulls - if (a == b) { - return 0; - } - - if (a == null) { - return -1; - } - - if (b == null) { - return 1; - } - - return ((String) a).compareTo((String) b); - } -} diff --git a/dev-db/hsqldb/files/TestBug1191815.java b/dev-db/hsqldb/files/TestBug1191815.java deleted file mode 100644 index 06c606401cdd..000000000000 --- a/dev-db/hsqldb/files/TestBug1191815.java +++ /dev/null @@ -1,129 +0,0 @@ -/* Copyright (c) 2001-2009, The HSQL Development Group - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * Neither the name of the HSQL Development Group nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, - * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - -package org.hsqldb.test; - -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.Statement; -import java.sql.Timestamp; -import java.util.Calendar; -import java.util.GregorianCalendar; -import java.util.TimeZone; - -import junit.framework.TestCase; -import junit.framework.TestResult; - -/** - * Created on Apr 28, 2005 - * @author Antranig Basman (antranig@caret.cam.ac.uk) - */ -public class TestBug1191815 extends TestBase { - - public TestBug1191815(String name) { - super(name); - } - - public void test() throws Exception { - - try { - Connection conn = newConnection(); - Statement stmt = conn.createStatement(); - - stmt.executeUpdate("drop table testA if exists;"); - stmt.executeUpdate("create table testA(data timestamp);"); - - TimeZone pst = TimeZone.getTimeZone("PST"); - Calendar cal = new GregorianCalendar(pst); - - cal.clear(); - cal.set(2005, 0, 1, 0, 0, 0); - - - // yyyy-mm-dd hh:mm:ss.fffffffff - Timestamp ts = new Timestamp(cal.getTimeInMillis()); - ts.setNanos(1000); - PreparedStatement ps = - conn.prepareStatement("insert into testA values(?)"); - - ps.setTimestamp(1, ts, cal); - ps.execute(); - ps.setTimestamp(1, ts, null); - ps.execute(); - - String sql = "select * from testA"; - - stmt = conn.createStatement(); - - ResultSet rs = stmt.executeQuery(sql); - - rs.next(); - - Timestamp returned = rs.getTimestamp(1, cal); - - rs.next(); - - Timestamp def = rs.getTimestamp(1, null); - - assertEquals(ts, returned); - assertEquals(ts, def); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - public static void main(String[] args) throws Exception { - - TestResult result; - TestCase test; - java.util.Enumeration exceptions; - java.util.Enumeration failures; - int count; - - result = new TestResult(); - test = new TestBug1191815("test"); - - test.run(result); - - count = result.failureCount(); - - System.out.println("TestBug1192000 failure count: " + count); - - failures = result.failures(); - - while (failures.hasMoreElements()) { - System.out.println(failures.nextElement()); - } - } -} - -- cgit v1.2.3