From: Walter Couto <Walter.Couto@EMBARCADERO.COM>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: David Johnston <david.g.johnston@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Re: Inconsistency between JDBC and ODBC drivers when dealing with TIMESTAMP WITH TIME ZONE
Date: Fri, 13 Jun 2014 23:20:34 +0000
Message-ID: <55ricaqbb5ifoardru24428g.1402701657114@email.android.com> (raw)
In-Reply-To: <539B76B6.8020902@tpf.co.jp>
References: <7FA4F9E5512F214C801E596ECD8790E066A82A9A@ETNAMAIL01.embarcadero.com>
<1402359526172-5806595.post@n5.nabble.com>
<7FA4F9E5512F214C801E596ECD8790E066A82D32@ETNAMAIL01.embarcadero.com>
<53967920.3090308@aklaver.com>
<5396865D.7080506@tpf.co.jp>
<CAKFQuwYy-B2CbfAD3rCOyf_DxOEQ0hJisnJSJuOft9yW=NgN6w@mail.gmail.com>
<7FA4F9E5512F214C801E596ECD8790E066A83019@ETNAMAIL01.embarcadero.com>
<5397CF28.1020503@tpf.co.jp>
<bnoya8s4yrxe1t6kpohrngxk.1402458152573@email.android.com>
<539B76B6.8020902@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
I vote to leave the timestamp in the server's time zone. Maybe a driver option can be added in future to allow the user to choose between local and server.
On the string format, Microsoft has timestamp with timezone formats and old drivers or the new ones when you ask for the string will gives you the time zone in hh:mm. Teradata, Oracle and DB2 also return this format if the result is a string. I believe they all also clip the timezone (don't convert to local timezone) if you as for it as a SQL_TIMESTAMP.
Walter
-------- Original message --------
From: Hiroshi Inoue
Date:06/13/2014 6:09 PM (GMT-05:00)
To: Walter Couto
Cc: David Johnston ,Adrian Klaver ,pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Re: Inconsistency between JDBC and ODBC drivers when dealing with TIMESTAMP WITH TIME ZONE
Hi Walter and all,
While reading the old and disabled code, I remembered the circumstances
back then a little.
Psqlodbc had followed the formatting rule e.g. described at the last
line in
http://msdn.microsoft.com/en-us/library/ms712387%28v=vs.85%29.aspx
.
Also look at
http://msdn.microsoft.com/en-us/library/ms712360%28v=vs.85%29.aspx
.
There's no time zone in ODBC world and I'm afraid the possibility
that some applications are broken by adding time zone expression.
So please vote which way to choose?
1. Keep the current behavior, i.e. simply drop the time zone part
from server's output if exists.
2. Use local time zone instead of server time zone but omit the time
zone expression.
3. Use local time zone with the time zone expression when the data
type is TIMESTAMP WITH TIME ZONE.
4. The others.
Anyway I attached a patch which implements the above 3.
It's easy to change to 2.
regarts,
Hiroshi Inoue
> Walter
>
>
> -------- Original message --------
> From: "Inoue, Hiroshi"
> Date:06/10/2014 11:39 PM (GMT-05:00)
> To: Walter Couto ,David Johnston
> Cc: Adrian Klaver ,pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Re: Inconsistency between JDBC and ODBC drivers when
> dealing with TIMESTAMP WITH TIME ZONE
>
> Hi Walter,
>
> I would enable time zone related code and complete the coding.
> When I make a patch, could you test it?
CONFIDENTIALITY NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
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-odbc@postgresql.org
Cc: Walter.Couto@EMBARCADERO.COM, inoue@tpf.co.jp, david.g.johnston@gmail.com, adrian.klaver@aklaver.com
Subject: Re: Inconsistency between JDBC and ODBC drivers when dealing with TIMESTAMP WITH TIME ZONE
In-Reply-To: <55ricaqbb5ifoardru24428g.1402701657114@email.android.com>
References: <7FA4F9E5512F214C801E596ECD8790E066A82A9A@ETNAMAIL01.embarcadero.com> <1402359526172-5806595.post@n5.nabble.com> <7FA4F9E5512F214C801E596ECD8790E066A82D32@ETNAMAIL01.embarcadero.com> <53967920.3090308@aklaver.com> <5396865D.7080506@tpf.co.jp> <CAKFQuwYy-B2CbfAD3rCOyf_DxOEQ0hJisnJSJuOft9yW=NgN6w@mail.gmail.com> <7FA4F9E5512F214C801E596ECD8790E066A83019@ETNAMAIL01.embarcadero.com> <5397CF28.1020503@tpf.co.jp> <bnoya8s4yrxe1t6kpohrngxk.1402458152573@email.android.com> <539B76B6.8020902@tpf.co.jp> <55ricaqbb5ifoardru24428g.1402701657114@email.android.com>
* 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