Re: Fetching Date and Timestamp values

From: Dev Kumkar <devdas(dot)kumkar(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Fetching Date and Timestamp values
Date: 2014-05-14 22:39:57
Message-ID: CALSLE1PxLe3uei=rtFfS3Do2JfBp3aQoQcKFrt4jW+6S791jbQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

On Thu, May 15, 2014 at 3:39 AM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>wrote:

> Google search found this:
>
> http://msdn.microsoft.com/en-us/library/ms714556%28v=vs.85%29.aspx
>
> Search of the source found this (pgtypes.c):
>
>
> http://git.postgresql.org/gitweb/?p=psqlodbc.git;a=blob;f=pgtypes.c;h=d7bde0ab11863171f17d3a1a534c23a9001c838f;hb=ad2a4aecb4748f8c5280aabf65dae570a9529065
>

Thanks, how normally a DATE and TIMESTAMP field is fetched from database?
What should be the target type when calling GetSqlData ODBC function? Is
there any sample program which can be referred?

Regards...

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Itnal, Prakash (NSN - IN/Bangalore) 2014-05-15 04:49:34 Issue with retry_count in socket.c and fix for the same
Previous Message Adrian Klaver 2014-05-14 22:09:43 Re: Fetching Date and Timestamp values