Crash when calling SQLSetDescField

Поиск
Список
Период
Сортировка
Искать

Crash when calling SQLSetDescField

От:
"Han" <zhouhanok@vip.sina.com>
Дата:
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



Re: Crash when calling SQLSetDescField

От:
Hiroshi Inoue <Inoue@tpf.co.jp>
Дата:
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/
FAQ