pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Brigitte und Wolfgang Pasche <pasche.wolfgang@kabelmail.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Problem with psqlODBC and "call" (of Stored Procedures)
Date: Mon, 19 Oct 2009 08:21:59 +0800
Message-ID: <4ADBB127.6020008@postnewspapers.com.au> (raw)
In-Reply-To: <4AD366C6.6010406@kabelmail.de>
References: <4AD366C6.6010406@kabelmail.de>

Brigitte und Wolfgang Pasche wrote:

> In this case, since PostgreSQL don't
> know a call statement, the ODBC driver correctly transform it into a
> SELECT statement. Unfortunately, the procedure parameter (datatype date)
> in the escaped form is transformed removing only the curly braces and
> leaving the rest untouched instead of transforming it (in a second
> step??) to the correct form. This of course leads to nonsense and
> results in an error message.
> 
> My personal impression is, that this is a bug in the ODBC driver

Yep, sounds like an ODBC driver bug for sure.

It might even be worth grabbing the ODBC driver sources to see if you
can spot the issue.

As it happens, the statement could be transformed correctly by
substituting 'DATE' for 'd'.

--
Craig Ringer



view thread (3+ messages)  latest in thread

Message-ID: <4ADBB127.6020008@postnewspapers.com.au>
Permalink:  ../4ADBB127.6020008@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4ADBB127.6020008@postnewspapers.com.au

 · 

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: craig@postnewspapers.com.au, pasche.wolfgang@kabelmail.de
  Subject: Re: Problem with psqlODBC and "call" (of Stored Procedures)
  In-Reply-To: <4ADBB127.6020008@postnewspapers.com.au>
  References: <4AD366C6.6010406@kabelmail.de> <4ADBB127.6020008@postnewspapers.com.au>

* 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