pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedCrash when calling SQLSetDescField
2+ messages / 2 participants
[nested] [flat]
* Crash when calling SQLSetDescField
@ 2002-12-25 07:21 Han <zhouhanok@vip.sina.com>
0 siblings, 1 reply; 2+ messages in thread
From: Han @ 2002-12-25 07:21 UTC (permalink / raw)
To: pgsql-odbc
Hi,
Following steps lead to crash!
1. call SQLAllocHandle to allocate a statement handle
2. call SQLGetStmtAttr(...,SQL_ATTR_IMP_PARAM_DESC,...) to get the IPD of the stmt handle
3. call SQLSetDescField(...,1,SQL_DESC_PARAMETER_TYPE,...)
The 3rd step leads to crash.
But SQLSetDescField(...,1,SQL_DESC_CONCISE_TYPE,...) will not crash, and following call to set SQL_DESC_PARAMETER_TYPE will not crash either.
Regards,
Han
zhouhanok@vip.sina.com
2002-12-25
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Crash when calling SQLSetDescField
@ 2002-12-28 00:24 Hiroshi Inoue <Inoue@tpf.co.jp>
parent: Han <zhouhanok@vip.sina.com>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2002-12-28 00:24 UTC (permalink / raw)
To: Han <zhouhanok@vip.sina.com>; +Cc: pgsql-odbc
Han wrote:
>
> Hi,
>
> Following steps lead to crash!
> 1. call SQLAllocHandle to allocate a statement handle
> 2. call SQLGetStmtAttr(...,SQL_ATTR_IMP_PARAM_DESC,...) to get the IPD of the stmt handle
> 3. call SQLSetDescField(...,1,SQL_DESC_PARAMETER_TYPE,...)
> The 3rd step leads to crash.
> But SQLSetDescField(...,1,SQL_DESC_CONCISE_TYPE,...) will not crash, and following call to set SQL_DESC_PARAMETER_TYPE will not crash either.
OK please try the cvs.
regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-12-28 00:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-25 07:21 Crash when calling SQLSetDescField Han <zhouhanok@vip.sina.com>
2002-12-28 00:24 ` 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