summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/jdbc/JConnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/jdbc/JConnection.cxx')
-rw-r--r--connectivity/source/drivers/jdbc/JConnection.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx
index b61e2e6e76a4..a8ed19cd87f6 100644
--- a/connectivity/source/drivers/jdbc/JConnection.cxx
+++ b/connectivity/source/drivers/jdbc/JConnection.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
@@ -279,7 +279,7 @@ java_sql_Connection::java_sql_Connection( const java_sql_Driver& _rDriver )
,m_bParameterSubstitution(sal_False)
,m_bIgnoreDriverPrivileges(sal_True)
,m_bIgnoreCurrency(sal_False)
-{
+{
}
// -----------------------------------------------------------------------------
java_sql_Connection::~java_sql_Connection()
@@ -289,7 +289,7 @@ java_sql_Connection::~java_sql_Connection()
{
SDBThreadAttach t;
clearObject(*t.pEnv);
-
+
{
if ( m_pDriverobject )
t.pEnv->DeleteGlobalRef( m_pDriverobject );
@@ -486,7 +486,7 @@ Reference< XStatement > SAL_CALL java_sql_Connection::createStatement( ) throw(
::rtl::OUString sNewSql;
OSQLParseNode* pNode = aParser.parseTree(sErrorMessage,_sSQL);
if(pNode)
- { // special handling for parameters
+ { // special handling for parameters
OSQLParseNode::substituteParameterNames(pNode);
pNode->parseNodeToStr( sNewSql, this );
delete pNode;
@@ -581,7 +581,7 @@ Any SAL_CALL java_sql_Connection::getWarnings( ) throw(SQLException, RuntimeExc
// ACHTUNG: der Aufrufer wird Eigentuemer des zurueckgelieferten Zeigers !!!
if( out )
{
- java_sql_SQLWarning_BASE warn_base(t.pEnv, out);
+ java_sql_SQLWarning_BASE warn_base(t.pEnv, out);
SQLException aAsException( static_cast< starsdbc::SQLException >( java_sql_SQLWarning( warn_base, *this ) ) );
// translate to warning
@@ -591,7 +591,7 @@ Any SAL_CALL java_sql_Connection::getWarnings( ) throw(SQLException, RuntimeExc
aWarning.SQLState = aAsException.SQLState;
aWarning.ErrorCode = aAsException.ErrorCode;
aWarning.NextException = aAsException.NextException;
-
+
return makeAny( aWarning );
}
@@ -670,9 +670,9 @@ void java_sql_Connection::loadDriverFromProperties( const ::rtl::OUString& _sDri
const Sequence< NamedValue >& _rSystemProperties )
{
// contains the statement which should be used when query for automatically generated values
- ::rtl::OUString sGeneratedValueStatement;
+ ::rtl::OUString sGeneratedValueStatement;
// set to <TRUE/> when we should allow to query for generated values
- sal_Bool bAutoRetrievingEnabled = sal_False;
+ sal_Bool bAutoRetrievingEnabled = sal_False;
// first try if the jdbc driver is alraedy registered at the driver manager
SDBThreadAttach t;
@@ -730,7 +730,7 @@ void java_sql_Connection::loadDriverFromProperties( const ::rtl::OUString& _sDri
if( t.pEnv && m_pDriverobject )
m_pDriverobject = t.pEnv->NewGlobalRef( m_pDriverobject );
-
+
{
jclass tempClass = t.pEnv->GetObjectClass(m_pDriverobject);
if ( m_pDriverobject )
@@ -761,7 +761,7 @@ void java_sql_Connection::loadDriverFromProperties( const ::rtl::OUString& _sDri
*this
);
}
-
+
enableAutoRetrievingEnabled( bAutoRetrievingEnabled );
setAutoRetrievingStatement( sGeneratedValueStatement );
}
@@ -789,12 +789,12 @@ sal_Bool java_sql_Connection::construct(const ::rtl::OUString& url,
throwGenericSQLException(STR_NO_JAVA,*this);
}
SDBThreadAttach t;
- t.addRef(); // will be released in dtor
+ t.addRef(); // will be released in dtor
if ( !t.pEnv )
throwGenericSQLException(STR_NO_JAVA,*this);
- ::rtl::OUString sGeneratedValueStatement; // contains the statement which should be used when query for automatically generated values
- sal_Bool bAutoRetrievingEnabled = sal_False; // set to <TRUE/> when we should allow to query for generated values
+ ::rtl::OUString sGeneratedValueStatement; // contains the statement which should be used when query for automatically generated values
+ sal_Bool bAutoRetrievingEnabled = sal_False; // set to <TRUE/> when we should allow to query for generated values
::rtl::OUString sDriverClassPath,sDriverClass;
Sequence< NamedValue > aSystemProperties;