summaryrefslogtreecommitdiff
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:20:02 +0100
commit1bb331a44f922e0250905f59354dc1ffdbc7e044 (patch)
treeed4b1187a2e01fe43c8ab34aac5dae16214d5725
parentb8b22f37ec3c26fb2b18b0d699e5e58e560b0d24 (diff)
statically assert our own ODBC_SQL_NOT_DEFINED does not conflict with SQL_UB_*
Change-Id: I2f571e06fd498ebe9378105030215ccb134bf974
-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");