configure.ac| 20 +-
connectivity/source/commontools/TSkipDeletedSet.cxx |8 +++
connectivity/source/drivers/calc/CTable.cxx |8 +++
connectivity/source/drivers/dbase/DTable.cxx|8 +++
connectivity/source/drivers/file/FResultSet.cxx | 22 ++--
connectivity/source/drivers/flat/ETable.cxx | 10 -
connectivity/source/drivers/odbc/OResultSet.cxx | 12 +-
connectivity/source/inc/TResultSetHelper.hxx|7 +++---
connectivity/source/inc/odbc/OFunctiondefs.hxx |6 +
connectivity/source/parse/sqlbison.y|2 -
connectivity/source/parse/sqliterator.cxx |4 +--
include/connectivity/IParseContext.hxx |5 ++--
12 files changed, 65 insertions(+), 47 deletions(-)
New commits:
commit 314c469c93f0ac139f64f742d3fd89e587f42970
Author: Lionel Elie Mamane lio...@mamane.lu
Date: Tue Sep 16 12:25:29 2014 +0200
try Use system ODBC on MS Windows unless specifically overriden again
Now that Noel has a working pattch for system ODBC on MS Windows
Change-Id: I11abb53486e45d9c7058c42011df41b5fad0fcde
diff --git a/configure.ac b/configure.ac
index a0b6ed5..823fcdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1822,7 +1822,7 @@ AC_ARG_WITH(libbase-jar,
AC_ARG_WITH(system-odbc,
AS_HELP_STRING([--with-system-odbc],
[Use the odbc headers already on system.]),,
-[with_system_odbc=$with_system_headers])
+[with_system_odbc=auto])
AC_ARG_WITH(system-sane,
AS_HELP_STRING([--with-system-sane],
@@ -8598,7 +8598,7 @@ dnl
===
dnl Check for system odbc
dnl ===
AC_MSG_CHECKING([which odbc headers to use])
-if test $with_system_odbc = yes ; then
+if test $with_system_odbc = yes -o '(' $with_system_headers = yes -a
$with_system_odbc = auto ')' -o '(' $_os = WINNT -a
$with_system_odbc != no ')'; then
AC_MSG_RESULT([external])
SYSTEM_ODBC_HEADERS=TRUE
commit ac10225762ce2c242d21126b5730b1d60f0150ed
Author: Noel Grandin n...@peralex.com
Date: Thu Sep 18 10:04:20 2014 +0300
implement --with-system-odbc on windows
Change-Id: I1757b9ce74277b1c11533f41caeafaf9b88658ef
diff --git a/configure.ac b/configure.ac
index c4367d9..a0b6ed5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2783,7 +2783,6 @@ if test $_os = Darwin; then
;;
esac
-# If no CC and CXX environment vars, try to guess where the compiler is
LIBTOOL=libtool
INSTALL_NAME_TOOL=install_name_tool
if test -z $save_CC; then
@@ -8603,8 +8602,19 @@ if test $with_system_odbc = yes ; then
AC_MSG_RESULT([external])
SYSTEM_ODBC_HEADERS=TRUE
-AC_CHECK_HEADER(sqlext.h, [],
- [AC_MSG_ERROR(odbc not found. install odbc)], [])
+if test $build_os = cygwin; then
+save_CPPFLAGS=$CPPFLAGS
+find_winsdk
+PathFormat $winsdktest
+CPPFLAGS=$CPPFLAGS -I$formatted_path/include/um
-I$formatted_path/include -I$formatted_path/include/shared
+AC_CHECK_HEADER(sqlext.h, [],
+[AC_MSG_ERROR(odbc not found. install odbc)],
+[#include windows.h])
+CPPFLAGS=$save_CPPFLAGS
+else
+AC_CHECK_HEADER(sqlext.h, [],
+[AC_MSG_ERROR(odbc not found. install odbc)],[])
+fi
elif test $enable_database_connectivity != yes; then
AC_MSG_RESULT([none])
else
diff --git a/connectivity/source/commontools/TSkipDeletedSet.cxx
b/connectivity/source/commontools/TSkipDeletedSet.cxx
index 563d545..cd98dd3 100644
--- a/connectivity/source/commontools/TSkipDeletedSet.cxx
+++ b/connectivity/source/commontools/TSkipDeletedSet.cxx
@@ -45,7 +45,7 @@ bool OSkipDeletedSet::skipDeleted(IResultSetHelper::Movement
_eCursorPosition, s
switch (_eCursorPosition)
{
-case IResultSetHelper::ABSOLUTE:
+case IResultSetHelper::ABSOLUTE1:
return moveAbsolute(_nOffset,_bRetrieveData);
case IResultSetHelper::FIRST: // set the movement
when positioning failed
eDelPosition = IResultSetHelper::NEXT;
@@ -55,7 +55,7 @@ bool OSkipDeletedSet::skipDeleted(IResultSetHelper::Movement
_eCursorPosition, s
eDelPosition = IResultSetHelper::PRIOR; // last row is invalid so
position before
nDelOffset = 1;
break;
-case IResultSetHelper::RELATIVE:
+case IResultSetHelper::RELATIVE1:
eDelPosition = (_nOffset = 0) ? IResultSetHelper::NEXT :
IResultSetHelper::PRIOR;
break;
default:
@@ -107,7 +107,7 @@ bool
OSkipDeletedSet::skipDeleted(IResultSetHelper::Movement _eCursorPosition, s
}
return bDataFound;
}
-else if (_eCursorPosition != IResultSetHelper::RELATIVE)
+else if (_eCursorPosition !=