[unixODBC-support] Segfault in copy_and_convert_field on 64-bit Linux host

Nick Gorham nick.gorham at easysoft.com
Mon Jul 16 17:17:56 BST 2007


Wayne Schroeder wrote:

>Hello,
>
>I'm seeing a segfault in unixODBC on a 64-bit Linux host, using
>unixODBC-2.2.12 and libiodbc-3.52.5 with postgresql-8.2.4.
>  
>

Hi,

The problem "may" be that the postgres driver by default uses 4 byte 
unixODBC, whereas unixODBC uses 2 byte UCS-2, I think its possible to 
build the postgres driver with 2 byte unicode.

The cast to *(SDWORD *) is making me think that this is the problem.

-- 
Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org




More information about the unixODBC-support mailing list