Re: Bug in PostgreSQL JDBC Drive.

From: Peter Mount <peter(at)retep(dot)org(dot)uk>
To: Raymond Chui <raymond(dot)chui(at)noaa(dot)gov>, pgsql-general(at)postgresql(dot)org
Subject: Re: Bug in PostgreSQL JDBC Drive.
Date: 2001-03-29 08:29:28
Message-ID: 5.0.2.1.0.20010329092803.0200bbd0@mail.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 09:43 16/03/01 -0500, Raymond Chui wrote:

Delayed as I only read General once in a while - jdbc mails should go to
the jdbc list.

>I have PostgreSQL jdbc7.0-1.2.jar JDBC drive.
>
>I found out if a column of a table is Timestamp data type
>
>Properties p = new Properties();
>p.put("PGTZ", "GMT");
>
>This does not take effect when you do
>SELECT/UPDATE/INSERT/DELETE (QUID).
>It gives me the local time zone.
>
>This should be the same as set environment
>"export PGTZ=GMT" or "setenv PGTZ GMT"
>in UNIX, right?

Nope... PGTZ is a libpq thing, and jdbc has nothing to do with libpq.

>I have to do
>connection = driver.connect('myjdbcURL", p);
>Statement st = connection.createStatement();
>st.execute("SET TIME ZONE 'GMT'");

Correct method.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marcin Kowalski 2001-03-29 08:35:06 Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP
Previous Message Phuong Ma 2001-03-29 08:25:30 inconsistent functionality with LIKE operator