Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0DF1263576B for ; Fri, 6 Nov 2009 12:06:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 13100-01-5 for ; Fri, 6 Nov 2009 16:06:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mail.postgresql.org (Postfix) with ESMTP id 0EE6F63475B for ; Fri, 6 Nov 2009 12:06:10 -0400 (AST) Received: by bwz5 with SMTP id 5so1343414bwz.3 for ; Fri, 06 Nov 2009 08:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=wgFWGCM39Y6HdiTm/sybGze+ZVxNH7y81uCIC6jbU8w=; b=YKsr++iF4r4HTJV9NzRXIcvUYWzxPT6XBrTDAWXUkHc4QzOwcZZIeLK6pts50yfJV6 T0e834U62rot/7xGg9rpDaFPtFuNgw7zt85VkveaSLdsaB51FhOElYsm5qq8o4V/GUOI MHIWqMS/AKJWsUAvxx5vZ/S8HYBhfLICbNVYw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hI2WQwyZhBJB133R3UrS665gJjzJ9tQEIbSM+bKYL5VKjTzH6Txgryi5x+hfKvYSHX paH/9q/fnaC0PqGiQMcj+tnbsDVoP/LQW6+PpRXIpNNHQP6bL1ImPGyrrnRglgdhMe5j Khtj1B1jriwudLeO3xQ61e7jL2bmnqvT/MnzA= MIME-Version: 1.0 Received: by 10.204.7.197 with SMTP id e5mr4765446bke.184.1257523568932; Fri, 06 Nov 2009 08:06:08 -0800 (PST) Date: Fri, 6 Nov 2009 11:06:08 -0500 Message-ID: <22431f1b0911060806n4a3cbc0byc20d9d637239c43@mail.gmail.com> Subject: ODBC driver does not return time zone for CURRENT_TIMESTAMP From: the6campbells To: pgsql-odbc@postgresql.org Content-Type: multipart/alternative; boundary=0015174c37409f792c0477b6050f X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.435 tagged_above=-10 required=5 tests=AWL=-0.326, BAYES_05=-1.11, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200911/9 X-Sequence-Number: 10058 --0015174c37409f792c0477b6050f Content-Type: text/plain; charset=ISO-8859-1 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. --0015174c37409f792c0477b6050f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
ODBC driver not returning time zone for CURRENT_TIMESTAMP. Known bug? = If so what is the ref#
=A0
=A0
select CURRENT_TIMESTAMP from TVERSION
=A0
=A0
The same test run via the SQL GUI from pgadmin will return something l= ike
=A0
"2009-11-06 10:42:33.944-05"
=A0
Mean while via ODBC note the precision on the describe and the returne= d value. Expecting something like
=A0
2009-11-06 08:00:34.980000+00:00 not what is being returned.
=A0
Describe Column All:
=A0=A0=A0=A0=A0=A0=A0=A0=A0icol, szColName, *= pcbColName, *pfSqlType, *pcbColDef, *pibScale, *pfNullable
=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A01, now, 3, SQL_TYPE_TIMESTAMP=3D93, 26, 6, SQL_NULLABL= E=3D1
=A0
Get Data All:
"now"
2009-11-06 10:44:36.583000000
1= row fetched from 1 column.
=A0
CURRENT_TIME and CURRENT_TIMES= TAMP deliver values with time zone; LOCALTIME and LOCALTIMESTAMP deliver values without time zone.
=A0
--0015174c37409f792c0477b6050f--