| From: | Oliver Siegmar <o(dot)siegmar(at)vitrado(dot)de> |
|---|---|
| To: | Kris Jurka <books(at)ejurka(dot)com> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: Problems with infinity |
| Date: | 2005-01-14 12:52:02 |
| Message-ID: | 200501141352.02879.o.siegmar@vitrado.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
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
| Attachment | Content-Type | Size |
|---|---|---|
| pgjdbc_infinity3.patch.gz | application/x-gzip | 728 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kris Jurka | 2005-01-14 13:03:18 | Re: Problems with infinity |
| Previous Message | Kris Jurka | 2005-01-14 12:29:54 | Re: Problems with infinity |