summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-12-05 05:58:21 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-12-06 19:42:31 +0100
commit07b4dd2e44cacb3f473259260d0d2b59a3a370c0 (patch)
treee53d9a72b6da3771bd17a3d6813b6346fe721bf3 /connectivity
parentd45cbcd1203776bc9d42e528541eae5f0086561b (diff)
statically assert our own ODBC_SQL_NOT_DEFINED does not conflict with SQL_UB_*
Change-Id: I2f571e06fd498ebe9378105030215ccb134bf974
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbcbase/OResultSet.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/connectivity/source/drivers/odbcbase/OResultSet.cxx b/connectivity/source/drivers/odbcbase/OResultSet.cxx
index 4a04f0647c8e..fbad2df752c2 100644
--- a/connectivity/source/drivers/odbcbase/OResultSet.cxx
+++ b/connectivity/source/drivers/odbcbase/OResultSet.cxx
@@ -36,6 +36,7 @@
#include "connectivity/dbexception.hxx"
#include "diagnose_ex.h"
#include <rtl/logfile.hxx>
+#include <boost/static_assert.hpp>
#include <o3tl/compat_functional.hxx>
@@ -53,6 +54,10 @@ using namespace com::sun::star::io;
using namespace com::sun::star::util;
#define ODBC_SQL_NOT_DEFINED 99UL
+BOOST_STATIC_ASSERT( ODBC_SQL_NOT_DEFINED != SQL_UB_OFF );
+BOOST_STATIC_ASSERT( ODBC_SQL_NOT_DEFINED != SQL_UB_ON );
+BOOST_STATIC_ASSERT( ODBC_SQL_NOT_DEFINED != SQL_UB_FIXED );
+BOOST_STATIC_ASSERT( ODBC_SQL_NOT_DEFINED != SQL_UB_VARIABLE );
//------------------------------------------------------------------------------
// IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.OResultSet","com.sun.star.sdbc.ResultSet");