Re: [ODBC] Problem calling a function from ODBC application - Mailing list pgsql-odbc

From Inoue, Hiroshi
Subject Re: [ODBC] Problem calling a function from ODBC application
Date
Msg-id 5d8022f4-9984-2991-e050-7cf82f7c15e1@dream.email.ne.jp
Whole thread Raw
In response to Re: [ODBC] Problem calling a function from ODBC application  ("Vilches, Alejandro" <alejandro.vilches@intel.com>)
List pgsql-odbc
Hi Alejandro,

On 2017/02/07 9:24, Vilches, Alejandro wrote:
> Hi Hiroshi,
>
> Thanks for your suggestion!  That actually worked!  It works two ways: "?::timestamp" or "cast(? as timestamp)".
>
> After running further tests, I'm seeing the issue occurs when the function has a parameter of type timestamp.
Furthermore,it throws off other parameters after that (e.g. the varchar parameters show up as unknown in the error
message). Anyway, I thought I would just mention that in case it helps anything. 
>
> I wish there was a way to specify the timestamp type better when binding the parameter in ODBC (or that PostgreSQL
wouldn'tget confused between timestamp with or without time zone) so that I didn't need to cast it on top of that (as
thisseems a bit redundant). 

I'd like to improve the behavior in the next release.

regards,
Hiroshi Inoue
>
> Anyway, thanks so much for your help, I really appreciate it!
>
> Alejandro



pgsql-odbc by date:

Previous
From: "Vilches, Alejandro"
Date:
Subject: Re: [ODBC] Problem calling a function from ODBC application
Next
From: Adrian Klaver
Date:
Subject: Re: [ODBC] [HY000] no error information; Error while preparingparameters