Bugs in ODBC x64 library implementation
Original Reporter info from Mantis: dgoncharov
-
Reporter name: Denis
Original Reporter info from Mantis: dgoncharov
- Reporter name: Denis
Description:
Hi!
I had some fatal crashes with ODBC components on win x64.
The main problem was wrong length of some parameters of API functions (There are some differencies for x64 platforms since MDAC 2.7). To solove this problems I had to update some code in odbcconn.pas and odbcsql.inc.
Modified source is attached in odbc.rar below.
Hope to see this changes in next version of LCL components.
Additional information:
The ODBC headers and libraries first shipped with MDAC 2.7 SDK contain changes
to allow programmers to easily write code for the new 64 bit platforms.
See: http://msdn.microsoft.com/en-us/library/ms716287(v=vs.85).aspx
I've changed the following declarations in odbcsql.inc and implementations in odbcconn.pas:
SQLBindCol
SQLBindParameter
SQLDescribeCol
SQLExtendedFetch //didn't find any call of this function in odbcconn.pas
SQLFetchScroll //didn't find any call of this function in odbcconn.pas
SQLGetData
SQLPutData //didn't find any call of this function in odbcconn.pas
SQLRowCount
SQLSetPos //didn't find any call of this function in odbcconn.pas
SQLSetDescRec
Mantis conversion info:
- Mantis ID: 25576
- OS: Windows
- OS Build: 7 SP1 x64
- Build: Lazarus #1.0.14
- Platform: Intel x86_64
- Version: 2.6.2
- Fixed in version: 3.0.0
- Monitored by: » dgoncharov (Denis)
- Target version: 2.6.4