Kaydet (Commit) 07b4dd2e authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

statically assert our own ODBC_SQL_NOT_DEFINED does not conflict with SQL_UB_*

Change-Id: I2f571e06fd498ebe9378105030215ccb134bf974
üst d45cbcd1
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment