pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: the6campbells <the6campbells@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: ODBC driver does not return time zone for CURRENT_TIMESTAMP
Date: Fri, 6 Nov 2009 11:06:08 -0500
Message-ID: <22431f1b0911060806n4a3cbc0byc20d9d637239c43@mail.gmail.com> (raw)

ODBC driver not returning time zone for CURRENT_TIMESTAMP. Known bug? If so
what is the ref#


 select CURRENT_TIMESTAMP from TVERSION


The same test run via the SQL GUI from pgadmin will return something like

"2009-11-06 10:42:33.944-05"

Mean while via ODBC note the precision on the describe and the returned
value. Expecting something like

2009-11-06 08:00:34.980000+00:00 not what is being returned.

Describe Column All:
         icol, szColName, *pcbColName, *pfSqlType, *pcbColDef, *pibScale,
*pfNullable
           1, now, 3, SQL_TYPE_TIMESTAMP=93, 26, 6, SQL_NULLABLE=1

Get Data All:
"now"
2009-11-06 10:44:36.583000000
1 row fetched from 1 column.

CURRENT_TIME and CURRENT_TIMESTAMP deliver values with time zone; LOCALTIMEand
LOCALTIMESTAMP deliver values without time zone.

Message-ID: <22431f1b0911060806n4a3cbc0byc20d9d637239c43@mail.gmail.com>
Permalink:  ../22431f1b0911060806n4a3cbc0byc20d9d637239c43@mail.gmail.com/
Also on:    postgresql.org/message-id/22431f1b0911060806n4a3cbc0byc20d9d637239c43@mail.gmail.com

 · 

reply

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: the6campbells@gmail.com
  Subject: Re: ODBC driver does not return time zone for CURRENT_TIMESTAMP
  In-Reply-To: <22431f1b0911060806n4a3cbc0byc20d9d637239c43@mail.gmail.com>
  References: <22431f1b0911060806n4a3cbc0byc20d9d637239c43@mail.gmail.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