From: Oliver Siegmar <o.siegmar@vitrado.de>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with infinity
Date: Fri, 14 Jan 2005 13:52:02 +0100
Message-ID: <200501141352.02879.o.siegmar@vitrado.de> (raw)
In-Reply-To: <Pine.BSO.4.56.0501140719390.16048@leary.csoft.net>
References: <200501131419.00993.o.siegmar@vitrado.de>
<200501141305.31056.o.siegmar@vitrado.de>
<Pine.BSO.4.56.0501140719390.16048@leary.csoft.net>
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
Attachments:
pgjdbc_infinity3.patch.gz (application/x-gzip, 728B) download
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: o.siegmar@vitrado.de, books@ejurka.com
Subject: Re: Problems with infinity
In-Reply-To: <200501141352.02879.o.siegmar@vitrado.de>
References: <200501131419.00993.o.siegmar@vitrado.de> <200501141305.31056.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501140719390.16048@leary.csoft.net> <200501141352.02879.o.siegmar@vitrado.de>
* 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