segfault

Peter Harvey <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <[email protected]>
Hey Nick,

Playing around with an ODBC problem. Possible bug in unixODBC. Built
sqliteodbc3 driver without wchar support (oversight) and then had my app
(which is built for UNICODE) call;

SQLPrepare
SQLExecute (fails as I expect)

Then the following segafults... 

SQLGetDiagField( nType, hHandle, 0, SQL_DIAG_DYNAMIC_FUNCTION, NULL, 0, &nChars );

This seems to be caused by using a null function pointer in the function array - presumably because the driver does not have SQLGetDiagFieldW. I would think that the DM would check for null function pointer.

Let me know if you want me to fix this (ie in the sourceforge repo).

--
Cheers
Peter
BTW: I know that I should expect SQL_ERROR from the SQLGetDiagField call in this case - just not a segfault ;)
 

 
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.