summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r--connectivity/source/drivers/file/FConnection.cxx2
-rw-r--r--connectivity/source/drivers/file/FDateFunctions.cxx1
-rw-r--r--connectivity/source/drivers/file/FStatement.cxx1
-rw-r--r--connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx4
-rw-r--r--connectivity/source/drivers/mysql/YViews.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_connection.cxx1
6 files changed, 2 insertions, 9 deletions
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx
index 5f0beab19a8f..0683af96b69a 100644
--- a/connectivity/source/drivers/file/FConnection.cxx
+++ b/connectivity/source/drivers/file/FConnection.cxx
@@ -130,7 +130,7 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV
{
sal_Int32 nLen = url.indexOf(':');
nLen = url.indexOf(':',nLen+1);
- ::rtl::OUString aDSN(url.copy(nLen+1)),aUID,aPWD;
+ ::rtl::OUString aDSN(url.copy(nLen+1));
String aFileName = aDSN;
INetURLObject aURL;
diff --git a/connectivity/source/drivers/file/FDateFunctions.cxx b/connectivity/source/drivers/file/FDateFunctions.cxx
index e45228aa2f57..b9a20b1fd00d 100644
--- a/connectivity/source/drivers/file/FDateFunctions.cxx
+++ b/connectivity/source/drivers/file/FDateFunctions.cxx
@@ -186,7 +186,6 @@ ORowSetValue OOp_Quarter::operate(const ORowSetValue& lhs) const
sal_Int32 nRet = 1;
::com::sun::star::util::Date aD = lhs;
- Date aDate(aD.Day,aD.Month,aD.Year);
if ( aD.Month >= 4 && aD.Month < 7 )
nRet = 2;
else if ( aD.Month >= 7 && aD.Month < 10 )
diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx
index 4b4c886a8b2d..7d247247b7c7 100644
--- a/connectivity/source/drivers/file/FStatement.cxx
+++ b/connectivity/source/drivers/file/FStatement.cxx
@@ -616,7 +616,6 @@ void OStatement_Base::GetAssignValues()
OSL_ENSURE(pInsertAtomCommalist != NULL,"OResultSet: pInsertAtomCommalist darf nicht NULL sein!");
OSL_ENSURE(pInsertAtomCommalist->count() > 0,"OResultSet: pInsertAtomCommalist <= 0");
- String aColumnName;
OSQLParseNode * pRow_Value_Const;
xub_StrLen nIndex=0;
for (sal_uInt32 i = 0; i < pInsertAtomCommalist->count(); i++)
diff --git a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
index 1507b8b6ec2e..46627c0e460f 100644
--- a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
+++ b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx
@@ -50,9 +50,6 @@ MDatabaseMetaDataHelper::~MDatabaseMetaDataHelper()
sal_Bool MDatabaseMetaDataHelper::getTableStrings( OConnection* _pCon,
::std::vector< ::rtl::OUString >& _rStrings)
{
- ::rtl::OUString sAbURI;
- ::rtl::OString sAbURIString;
-
SAL_INFO("connectivity.mork", "=> MDatabaseMetaDataHelper::getTableStrings()");
/* add default table */
@@ -89,7 +86,6 @@ sal_Bool MDatabaseMetaDataHelper::getTables( OConnection* _pCon,
aRows.clear();
::std::vector< ::rtl::OUString > tables;
- OUString matchAny = "%";
if ( !getTableStrings( _pCon, tables ) )
return sal_False;
diff --git a/connectivity/source/drivers/mysql/YViews.cxx b/connectivity/source/drivers/mysql/YViews.cxx
index dd0b02fea7db..eb1a8d7f2103 100644
--- a/connectivity/source/drivers/mysql/YViews.cxx
+++ b/connectivity/source/drivers/mysql/YViews.cxx
@@ -127,7 +127,7 @@ void OViews::createView( const Reference< XPropertySet >& descriptor )
::rtl::OUString aSql( "CREATE VIEW " );
::rtl::OUString aQuote = xConnection->getMetaData()->getIdentifierQuoteString( );
- ::rtl::OUString sSchema,sCommand;
+ ::rtl::OUString sCommand;
aSql += ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInTableDefinitions, false, false, true );
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index 015fe534d8b9..1c0d52ad887b 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -399,7 +399,6 @@ void Connection::setCatalog( const ::rtl::OUString& )
::rtl::OUString Connection::getCatalog() throw (SQLException, RuntimeException)
{
- OUString ret;
MutexGuard guard( m_refMutex->mutex );
if( m_settings.pConnection == 0 )
{