summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx2
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index 76d32e70ba8d..74015586c093 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -601,7 +601,7 @@ OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( )
uno::Reference< XStatement > xSelect = m_pConnection->createStatement();
uno::Reference< XResultSet > xRs = xSelect->executeQuery("SELECT rdb$get_context('SYSTEM', 'ENGINE_VERSION') as version from rdb$database");
- xRs->next(); // first and only row
+ (void)xRs->next(); // first and only row
uno::Reference< XRow > xRow( xRs, UNO_QUERY_THROW );
return xRow->getString(1);
}
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
index a57f10720104..d9c7f81f9139 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
@@ -364,7 +364,7 @@ OUString SAL_CALL ODatabaseMetaData::getUserName()
Reference<XStatement> statement = m_rConnection.createStatement();
Reference<XResultSet> rs = statement->executeQuery("select user()");
Reference<XRow> xRow(rs, UNO_QUERY_THROW);
- rs->next(); // the first and only result
+ (void)rs->next(); // the first and only result
// e.g. root@localhost
OUString userWithConnection = xRow->getString(1);
sal_Int32 nIndexOfAt = userWithConnection.indexOf("@");