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 B34573A1A21 for ; Fri, 14 Jan 2005 12:52:09 +0000 (GMT) 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 64280-01 for ; Fri, 14 Jan 2005 12:52:02 +0000 (GMT) Received: from mx.vitrado.de (mx.vitrado.de [194.97.5.172]) by svr1.postgresql.org (Postfix) with ESMTP id 658673A1A1C for ; Fri, 14 Jan 2005 12:52:03 +0000 (GMT) Received: from morpheus.vitrado.de ([194.97.5.114] helo=vitrado-011.intranet.de) by mx.vitrado.de with asmtp (Exim 4.34 and XAMS pre-0.0.16) id 1CpQvr-0005aC-Rj; Fri, 14 Jan 2005 13:52:03 +0100 From: Oliver Siegmar Organization: Vitrado GmbH To: Kris Jurka Subject: Re: Problems with infinity Date: Fri, 14 Jan 2005 13:52:02 +0100 User-Agent: KMail/1.7.1 Cc: pgsql-jdbc@postgresql.org References: <200501131419.00993.o.siegmar@vitrado.de> <200501141305.31056.o.siegmar@vitrado.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_yB85B3Q+qrhwX4a" Message-Id: <200501141352.02879.o.siegmar@vitrado.de> X-VITRADO-MailScanner: Not scanned X-MailScanner-From: o.siegmar@vitrado.de X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/115 X-Sequence-Number: 11995 --Boundary-00=_yB85B3Q+qrhwX4a Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 14 January 2005 13:29, Kris Jurka wrote: > This looks alright for timestamp, but I don't think this is the right > thing to do for date and time. The result of getDate should have no hour, You're right. I thought of java datatypes instead of Postgres datatypes. The conversion is only needed for timestamp, of course. > The way to make sure this works (both now and in the future) is to add a > test or two to the test suite. See org/postgresql/test/ and > http://jdbc.postgresql.org/development/intro.html#Test+Suite I added tests to the main method within TimestampUtils, but I can't run the test. A simple 'ant test' runs flawlessly without any errors, but it doesn't do anything - Buildfile: build.xml prepare: check_versions: check_driver: driver: compile: examples: jar: testjar: runtest: test: BUILD SUCCESSFUL Total time: 1 second ...but no database operations were performed. Oliver --Boundary-00=_yB85B3Q+qrhwX4a Content-Type: application/x-gzip; name="pgjdbc_infinity3.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pgjdbc_infinity3.patch.gz" H4sICA2/50EAA3BnamRiY19pbmZpbml0eTMucGF0Y2gApVXbbtpAEH3nK0Y8BCMZu75AIDcJNbSi IpcGklZ9iTb2Ghw5u87u2iFK8u/dtWViiE2oOg8YvGfmzJwzNmPi4+UBUDY3Y8rFnGH+GJn3/p1n m7PwAXOBHuJrEUbcuEcpahz/fzSuvk4hCCN8AGbCmRlRD0Wml3JGqTDjuSIvLrv2pacNhgULcRqS OTB54SElYBmW3fDDIIAOU9+haiSnq7uO77iNIygiJAJ4hAkcAzfkdS4WWvtQAkoY0wSVDj7FnLQE LFCKAYFHiYdjATSAovEWlwWDkITieT2fUxALzLAEECrgIfEW8ITBQ0RWBXVilJsKQNPyro6hD3t7 sjf8mKCIa82ifrPdhtdXWMEG67BOCdeGl1JxFWLB6BMQ/ASX05+T0VLNIVXUvs8MwbTmOM/FkKIo wRDQhPjyk4EoRDUAfihJFkgNJKVgcvqYEj83JZa/MBFIFTWabX2Dvi5UM1OZhY3T4Ww0G5+Nbi9u RlffJhe/Mk+KeFP+WF3Hs1x3o7SSTnbIBBxlvqrZO51O46QetbJdYa2+hax9R7f6TimnZktOoISR LsuNSLEsWrEOuZQcBIUJlRrhpWBYilkmCWAX0182ZpFPQ8JIZuZq5zXFYZwNf9/eDCfXo6zVd/HW 2i6zbtmhf6Edn9fR2s5At13Hs11Lt7t2xVqgOMbEP5U7oPG7JNDlIxKteV+EOjVytNaCViUmP1bt vRfTYWnMsThHhHJp+fa0P5QUqcst0BFDa91+XLhC6Yw7a6itBN+w6YPIVcOWluGwAv4GOOK4nmxl zm5knZ3Y6krVuPk5b+7otqKfuPpZ6oaz2+Cb7laokO12t4fsXq/iuGHvf0F231Iop99DzqCvO4NB CVmSWS/fLt11BvvItSzdlf9z74jZc4y5od6U09nw7FLfdvQXR4SVWwEIAAA= --Boundary-00=_yB85B3Q+qrhwX4a--