diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-12 10:13:47 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:23 +0100 |
commit | cc02d3db1cc40fcb9bbc3ad7e848a7d89e996744 (patch) | |
tree | ff1cf0c87b53af646eb93b85af67ecc8e2d146a0 /connectivity | |
parent | 42667095d9e7f169572afd299f28786cec7db09e (diff) |
sdbc-psql: DbMetaData getIntSetting: move to first row before getInt
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_databasemetadata.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index f3dfeec66cc7..911e30325f07 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -945,6 +945,9 @@ sal_Int32 DatabaseMetaData::getIntSetting(OUString settingName) params->setString(1, settingName ); Reference< XResultSet > rs = m_getIntSetting_stmt->executeQuery(); Reference< XRow > xRow( rs , UNO_QUERY_THROW ); + OSL_VERIFY(rs->next()); + OSL_ENSURE(rs->isFirst(), "postgresql-sdbc DatabaseMetaData getIntSetting not on first row"); + OSL_ENSURE(rs->isLast(), "postgresql-sdbc DatabaseMetaData getIntSetting not on last row"); return xRow->getInt(1); } |