pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedStatementHandle will be free automatically after you excute a update (delete) query that return 0 row affect.
2+ messages / 2 participants
[nested] [flat]
* StatementHandle will be free automatically after you excute a update (delete) query that return 0 row affect.
@ 2003-12-24 03:36 freeman <flhotel@public.xm.fj.cn>
0 siblings, 1 reply; 2+ messages in thread
From: freeman @ 2003-12-24 03:36 UTC (permalink / raw)
To: pgsql-odbc
SERVER: MANDRIKE 8.1+POSTGRESQL 7.4
CLENT : PWIN98+PSQLODBC7.03.02
TEST TOOL: ODBC TEST
If ODBCVER <>3.0 , StatementHandle will be free automatically after you excute a update (delete) query that return 0 row affect.
EXAMPLE 1: (ERROR? StatementHandle will be free automatically after SQLExecdirect )
----------------------------------------------------------------------------
Full Connect(Default)
Successfully connected to DSN 'PostgreSQL30'.
SQLExecDirect:
In: hstmt = 0x00C00748,
szSqlStr = "DELETE FROM GUEST WHERE 1=2", cbSqlStr = -3
Return: SQL_NO_DATA_FOUND=100
SQLNumResultCols:
In: StatementHandle = 0x00C00748, ColumnCountPtr = 0x004B85E0
Return: SQL_ERROR=-1
Out: *ColumnCountPtr = <unmodified>
stmt: szSqlState = "S1010", *pfNativeError = 0, *pcbErrorMsg = 56
szErrorMsg = "[Microsoft][ODBC Driver Manager] Function sequence error"
------------------------------------------------------------------------------
EXAMPLE 2: (OK)
-------------------------------------------------------------------------------
Full Connect(Default)
Env. Attr. SQL_ATTR_ODBC_VERSION set to SQL_OV_ODBC3
Successfully connected to DSN 'PostgreSQL30'.
SQLExecDirect:
In: hstmt = 0x00C00748,
szSqlStr = "DELETE FROM GUEST WHERE 1=2", cbSqlStr = -3
Return: SQL_NO_DATA_FOUND=100
SQLNumResultCols:
In: StatementHandle = 0x00C00748, ColumnCountPtr = 0x004B85E0
Return: SQL_SUCCESS=0
Out: *ColumnCountPtr = 0
--------------------------------------------------------------------------------
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: StatementHandle will be free automatically after you excute a
@ 2003-12-26 01:35 Hiroshi Inoue <Inoue@tpf.co.jp>
parent: freeman <flhotel@public.xm.fj.cn>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2003-12-26 01:35 UTC (permalink / raw)
To: freeman <flhotel@public.xm.fj.cn>; +Cc: pgsql-odbc
freeman wrote:
>
> SERVER: MANDRIKE 8.1+POSTGRESQL 7.4
> CLENT : PWIN98+PSQLODBC7.03.02
> TEST TOOL: ODBC TEST
>
> If ODBCVER <>3.0 , StatementHandle will be free automatically after you excute a update (delete) query that return 0 row affect.
Could you try the dll at
http://www.geocities.jp/inocchichichi/psqlodbc/ ?
reagrds,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-12-26 01:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-24 03:36 StatementHandle will be free automatically after you excute a update (delete) query that return 0 row affect. freeman <flhotel@public.xm.fj.cn>
2003-12-26 01:35 ` Re: StatementHandle will be free automatically after you excute a 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