pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
About server side prepare
4+ messages / 2 participants
[nested] [flat]

* About server side prepare
@ 2002-12-20 02:51 Han <zhouhanok@vip.sina.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Han @ 2002-12-20 02:51 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc

Hiroshi Inoue,

>
>Please check and try the new *Server side prepare* DSN option.
>Note that the option is effective only for 7.3 severs.
>
>regards,
>Hiroshi Inoue

I'm using 7.3 server.
The SQLRowCount after server side prepared insert returns row count -1. But the row was actually inserted successfully!
regards!
				
        Han
        zhouhanok@vip.sina.com
          2002-12-20







^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: About server side prepare
@ 2002-12-20 04:21 Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 0 replies; 4+ messages in thread

From: Hiroshi Inoue @ 2002-12-20 04:21 UTC (permalink / raw)
  To: Han <zhouhanok@vip.sina.com>; +Cc: pgsql-odbc

Han wrote:
> 
> Hiroshi Inoue,
> 
> >
> >Please check and try the new *Server side prepare* DSN option.
> >Note that the option is effective only for 7.3 severs.
> >
> >regards,
> >Hiroshi Inoue
> 
> I'm using 7.3 server.
> The SQLRowCount after server side prepared insert returns row count -1. But the row was actually inserted successfully!

Good catch. Hmm this may be a serious problem because
there's no way to know the row count when we use EXECUTE
statements.

regards,
Hiroshi Inoue
	http://w2422.nsk.ne.jp/~inoue/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: About server side prepare
@ 2002-12-20 05:50 Han <zhouhanok@vip.sina.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Han @ 2002-12-20 05:50 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc

Hiroshi Inoue,

>> Another question is that why prepare every time when calling SQLExecute?
>
>Do you call other ODBC APIs between the first SQLExcute and the
>second one ?
>
>regards,
>Hiroshi Inoue

	Oh yes, I called SQLFreeStmt(stmt, SQL_CLOSE) between SQLExecutes.
				
        Han
        zhouhanok@vip.sina.com
          2002-12-20







^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: About server side prepare
@ 2002-12-20 08:52 Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 0 replies; 4+ messages in thread

From: Hiroshi Inoue @ 2002-12-20 08:52 UTC (permalink / raw)
  To: Han <zhouhanok@vip.sina.com>; +Cc: pgsql-odbc

Han wrote:
> 
> Hiroshi Inoue,
> 
> >> Another question is that why prepare every time when calling SQLExecute?
> >
> >Do you call other ODBC APIs between the first SQLExcute and the
> >second one ?
> >
> >regards,
> >Hiroshi Inoue
> 
>         Oh yes, I called SQLFreeStmt(stmt, SQL_CLOSE) between SQLExecutes.

OK please try the latest cvs.

regards,
Hiroshi Inoue
	http://w2422.nsk.ne.jp/~inoue/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2002-12-20 08:52 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-20 02:51 About server side prepare Han <zhouhanok@vip.sina.com>
2002-12-20 04:21 Re: About server side prepare Hiroshi Inoue <Inoue@tpf.co.jp>
2002-12-20 05:50 Re: About server side prepare Han <zhouhanok@vip.sina.com>
2002-12-20 08:52 Re: About server side prepare Hiroshi Inoue <Inoue@tpf.co.jp>

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