summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/odbcbase/OStatement.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/odbcbase/OStatement.cxx')
-rw-r--r--connectivity/source/drivers/odbcbase/OStatement.cxx50
1 files changed, 25 insertions, 25 deletions
diff --git a/connectivity/source/drivers/odbcbase/OStatement.cxx b/connectivity/source/drivers/odbcbase/OStatement.cxx
index 1a6b2d49e551..dcf62bf3c6a3 100644
--- a/connectivity/source/drivers/odbcbase/OStatement.cxx
+++ b/connectivity/source/drivers/odbcbase/OStatement.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,13 +57,13 @@ using namespace ::comphelper;
OTools::ThrowException(m_pConnection,x,m_aStatementHandle,SQL_HANDLE_STMT,*this)
#if OSL_DEBUG_LEVEL > 1
-#define DEBUG_THROW \
- try \
- { \
- THROW_SQL(nRetCode); \
- } \
- catch(SQLException&) \
- { \
+#define DEBUG_THROW \
+ try \
+ { \
+ THROW_SQL(nRetCode); \
+ } \
+ catch(SQLException&) \
+ { \
OSL_ENSURE(0,"Exception in odbc catched"); \
}
#endif
@@ -162,7 +162,7 @@ Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(Runtime
// -------------------------------------------------------------------------
Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
{
- ::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
+ ::cppu::OTypeCollection aTypes( ::getCppuType( (const Reference< XMultiPropertySet > *)0 ),
::getCppuType( (const Reference< XFastPropertySet > *)0 ),
::getCppuType( (const Reference< XPropertySet > *)0 ));
Sequence< Type > aOldTypes = OStatement_BASE::getTypes();
@@ -178,7 +178,7 @@ Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
// -------------------------------------------------------------------------
Reference< XResultSet > SAL_CALL OStatement_Base::getGeneratedValues( ) throw (SQLException, RuntimeException)
{
- OSL_ENSURE( m_pConnection && m_pConnection->isAutoRetrievingEnabled(),"Illegal call here. isAutoRetrievingEnabled is false!");
+ OSL_ENSURE( m_pConnection && m_pConnection->isAutoRetrievingEnabled(),"Illegal call here. isAutoRetrievingEnabled is false!");
Reference< XResultSet > xRes;
if ( m_pConnection )
{
@@ -320,7 +320,7 @@ sal_Bool OStatement_Base::lockIfNecessary (const ::rtl::OUString& sql) throw( SQ
// Sets the warning
//--------------------------------------------------------------------
-void OStatement_Base::setWarning (const SQLWarning &ex) throw( SQLException)
+void OStatement_Base::setWarning (const SQLWarning &ex) throw( SQLException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
@@ -340,7 +340,7 @@ sal_Int32 OStatement_Base::getColumnCount () throw( SQLException)
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
- sal_Int16 numCols = 0;
+ sal_Int16 numCols = 0;
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
try {
@@ -450,7 +450,7 @@ Reference< XResultSet > OStatement_Base::getResultSet (sal_Bool checkCount) thro
sal_Int32 OStatement_Base::getStmtOption (short fOption) const
{
- sal_Int32 result = 0;
+ sal_Int32 result = 0;
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
N3SQLGetStmtAttr(m_aStatementHandle, fOption,&result,SQL_IS_INTEGER,NULL);
return result;
@@ -562,7 +562,7 @@ sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const ::rtl::OUString& sql )
::connectivity::SharedResources aResources;
const ::rtl::OUString sError( aResources.getResourceString(STR_NO_ROWCOUNT));
- throw SQLException (sError, *this,::rtl::OUString(),0,Any());
+ throw SQLException (sError, *this,::rtl::OUString(),0,Any());
}
return numRows;
@@ -604,7 +604,7 @@ sal_Bool SAL_CALL OStatement_Base::getMoreResults( ) throw(SQLException, Runtim
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
- SQLWarning warning;
+ SQLWarning warning;
sal_Bool hasResultSet = sal_False;
// clear previous warnings
@@ -800,10 +800,10 @@ void OStatement_Base::setResultSetType(sal_Int32 _par0)
switch(_par0)
{
case ResultSetType::FORWARD_ONLY:
- nSet = SQL_UNSPECIFIED;
+ nSet = SQL_UNSPECIFIED;
break;
case ResultSetType::SCROLL_INSENSITIVE:
- nSet = SQL_INSENSITIVE;
+ nSet = SQL_INSENSITIVE;
N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_CURSOR_TYPE,(SQLPOINTER)SQL_CURSOR_KEYSET_DRIVEN,SQL_IS_UINTEGER);
break;
case ResultSetType::SCROLL_SENSITIVE:
@@ -816,7 +816,7 @@ void OStatement_Base::setResultSetType(sal_Int32 _par0)
sal_Bool bNotBookmarks = ((nCurProp & SQL_CA1_BOOKMARK) != SQL_CA1_BOOKMARK);
nCurProp = getCursorProperties(SQL_CURSOR_KEYSET_DRIVEN,sal_False);
nSet = SQL_CURSOR_KEYSET_DRIVEN;
- if( bNotBookmarks ||
+ if( bNotBookmarks ||
((nCurProp & SQL_CA2_SENSITIVITY_DELETIONS) != SQL_CA2_SENSITIVITY_DELETIONS) ||
((nCurProp & SQL_CA2_SENSITIVITY_ADDITIONS) != SQL_CA2_SENSITIVITY_ADDITIONS))
{
@@ -835,7 +835,7 @@ void OStatement_Base::setResultSetType(sal_Int32 _par0)
nSet = SQL_CURSOR_KEYSET_DRIVEN;
N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_CURSOR_TYPE,(SQLPOINTER)nSet,SQL_IS_UINTEGER);
}
- nSet = SQL_SENSITIVE;
+ nSet = SQL_SENSITIVE;
break;
default:
OSL_ENSURE( false, "OStatement_Base::setResultSetType: invalid result set type!" );
@@ -859,7 +859,7 @@ void OStatement_Base::setFetchDirection(sal_Int32 _par0)
{
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
sal_Int32 nCursType = 0;
- SQLRETURN nRetCode = SQL_SUCCESS;
+ SQLRETURN nRetCode = SQL_SUCCESS;
if(_par0 == FetchDirection::FORWARD)
{
nCursType = SQL_NONSCROLLABLE;
@@ -928,12 +928,12 @@ void OStatement_Base::setUsingBookmarks(sal_Bool _bUseBookmark)
Sequence< Property > aProps(10);
Property* pProperties = aProps.getArray();
sal_Int32 nPos = 0;
- DECL_PROP0(CURSORNAME, ::rtl::OUString);
+ DECL_PROP0(CURSORNAME, ::rtl::OUString);
DECL_BOOL_PROP0(ESCAPEPROCESSING);
DECL_PROP0(FETCHDIRECTION,sal_Int32);
- DECL_PROP0(FETCHSIZE, sal_Int32);
+ DECL_PROP0(FETCHSIZE, sal_Int32);
DECL_PROP0(MAXFIELDSIZE,sal_Int32);
- DECL_PROP0(MAXROWS, sal_Int32);
+ DECL_PROP0(MAXROWS, sal_Int32);
DECL_PROP0(QUERYTIMEOUT,sal_Int32);
DECL_PROP0(RESULTSETCONCURRENCY,sal_Int32);
DECL_PROP0(RESULTSETTYPE,sal_Int32);
@@ -1004,7 +1004,7 @@ sal_Bool OStatement_Base::convertFastPropertyValue(
}
catch(const SQLException&)
{
- // throw Exception(e.Message,*this);
+ // throw Exception(e.Message,*this);
}
return bConverted;
}
@@ -1052,7 +1052,7 @@ void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const A
}
catch(const SQLException& )
{
- // throw Exception(e.Message,*this);
+ // throw Exception(e.Message,*this);
}
}
// -------------------------------------------------------------------------