![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi All, It looks like the problem is that the 9.2.0 iiapi_getColumns() is setting the getColParm.gc_genParm.gp_status to IIAPI_ST_NO_DATA after the retrieval of a long varchar item whose length is a multiple of 2006. It will do this whether or not there are more rows to be fetched. It works in 9.1.1 and 2.6, but fails with a sigsegv within iiapi_getColumns in 9.0.4. Sweet! Marty *From:* info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] *On Behalf Of *Martin Bowes *Sent:* 18 January 2010 12:33 *To:* Ingres and related product discussion forum *Subject:* Re: [Info-Ingres] API and longs of length 2006 (or multiples) Hi All, We have had failures on blobs with lengths 2006, 10030 (5 * 2006), 12036 (6* 2006), 14042 (7 * 2006) and 30090 (15 * 2006). 2006 = max varchar length on a 2k page. Weird or what? Marty *From:* info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] *On Behalf Of *Martin Bowes *Sent:* 18 January 2010 11:42 *To:* Ingres and related product discussion forum *Subject:* [Info-Ingres] API and longs of length 2006 (or multiples) Hi All, Since upgrading to 9.2.0 (a64.lnx/143)NPTL + p13643 we've had a bizarre situation with reading longs with a cursor in an API program. If the length of the long is a mutliple of 2006 then the statement doing the read cannot be closed. The attempt to do so generates an error. Indicating the statement cannot be closed in its current condition and we have to use cancel instead. I installed II_API_TRACE and LOG and we found that at the call to iiapi_close we got: !IIapi_close: closing a query !IIapi_close: stmtHndl = 00000000008541F0 !IIapi_uiDispatch: dispatching event IIAPI_EV_CLOSE_FUNC !Dispatch(-1726773808): SQL Stmt [00000000008541F0] PART --> PART, 2 action(s) !Dispatch(-1726773808): action[1] ERQA !SQL Stmt: Query active - must be cancelled !Dispatch(-1726773808): action[2] ICBF !IIapi_appCallback: request completed, status = FAILURE !IIapi_getErrorInfo: retrieving errors from API ... Anyone seen anything like this?? BTW the same program when run from a 2.6 platform (using a vnode to connect to the same database) works OK. Martin Bowes. _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#5
| |||
| |||
|
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |