[unixODBC-support] unicODBC 2.03 Redhat Linux 64 bit machine

Nithesh Shetty knitheshshetty at yahoo.com
Fri Sep 9 11:48:58 BST 2011

The size of len_ind variable is 8 byte 
and here is the call stack of the core file generated
bcoSetupPtrs () from  /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1  
bcoReturnUserData () from /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1  
bcoCacheReturnData () from /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1 
bcoCacheFetchNext () from  /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1 
bcoCacheFetch() from  /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
bcoSQLScroll () from /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
bcoSQLFetchScroll () from /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
SQLFetchScroll() from /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
SQLFetchScroll(statement_handle=0xac97d0, fetch_orientation=1, fetch_offset=0) at  SQLFetchScroll.c:277

From: Nick Gorham <nick at lurcher.org>
To: Nithesh Shetty <knitheshshetty at yahoo.com>; Support for the unixODBC project <unixodbc-support at mailman.unixodbc.org>
Cc: Neha Avasthy <neha.avasthy at gmail.com>
Sent: Friday, September 9, 2011 2:19 PM
Subject: Re: [unixODBC-support] unicODBC 2.03 Redhat Linux 64 bit machine

On 09/09/11 06:27, Nithesh Shetty wrote: 
Hi Neha,
>Its RHEL 6 and i have tried with int64_t 
>it gives the same segmentation fault.
As I say, you have to know that the app view of sizeof( SQLLEN ) is the same as the driver. The most important point where that size matters, is the size of the array of SQLLEN that is bound as the indicator variable to each column. Between the SQLSetStmtAttr and the SQLExecute there will be one or more SQLBindCol, check the size of the len_ind variable.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20110909/67ab73f4/attachment.html>

More information about the unixODBC-support mailing list