Re: Re: [INTERFACES] Postgres odbc driver bug - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: Re: [INTERFACES] Postgres odbc driver bug
Date
Msg-id 3AF89956.47FEDBF5@tpf.co.jp
Whole thread Raw
In response to Re: [INTERFACES] Postgres odbc driver bug  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Re: [INTERFACES] Postgres odbc driver bug
List pgsql-odbc
Bruce Momjian wrote:
>
> OK, I have created a context diff of your changes, which is attached.
> Can someone comment on this?  The patch appears to deal with
> STMT_PREMATURE differently than our current code.
>
> In fact, it seems to disable this code:
>
>     /*
>      * If the statement is premature, it means we already executed it from
>      * an SQLPrepare/SQLDescribeCol type of scenario.  So just return
>      * success.
>      */
>     if (stmt->prepare && stmt->status == STMT_PREMATURE)
>

Though this fixes the bug reported by Keith, STMT_PREMATURE
loses its meaning and SC_pre_execute() does a non-essential
work as a result. Possibly SQLPrepare() must be rewritten
though I'm not sure.

regards,
Hiroshi Inoue

pgsql-odbc by date:

Previous
From: Cedar Cox
Date:
Subject: Re: encrypt odbc transactions?
Next
From: Hiroshi Inoue
Date:
Subject: Re: Re: [INTERFACES] Postgres odbc driver bug