Date: Wednesday, December 6, 2006 @ 12:10:23
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: env.cpp (1.14 -> 1.15)
Fixed SQL_OV_ODBC2/3 64bits cast issue reported by Interconcept
---------+
env.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: odbsequoia/src/env.cpp
diff -u odbsequoia/src/env.cpp:1.14 odbsequoia/src/env.cpp:1.15
--- odbsequoia/src/env.cpp:1.14 Fri Mar 31 00:57:55 2006
+++ odbsequoia/src/env.cpp Wed Dec 6 12:10:23 2006
@@ -113,9 +113,9 @@
case SQL_ATTR_ODBC_VERSION:
// version 2 asked
- if (SQL_OV_ODBC2 == (int) value) {
+ if (reinterpret_cast<SQLPOINTER>(SQL_OV_ODBC2) == value) {
- std::wstring func_witharg(SETENVATTR_FUNC + L"(ODBC_VERSION, 2,
)");
+ const std::wstring func_witharg(SETENVATTR_FUNC + L"(ODBC_VERSION,
2, )");
if (!fake_version2) {
std::wstring msg(L"faking ODBC version 2 is disabled");
@@ -132,7 +132,7 @@
}
// version 3 asked
- if (SQL_OV_ODBC3 == (int) value)
+ if (reinterpret_cast<SQLPOINTER>(SQL_OV_ODBC3) == value)
break;
default:
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits