Kaydet (Commit) ff74bd33 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1438783 Unchecked return value

Change-Id: Ice56d317087dd24d2eef27f2ace5fdf9f4da946d
Reviewed-on: https://gerrit.libreoffice.org/59654
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 136077b4
...@@ -63,7 +63,9 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column) ...@@ -63,7 +63,9 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column)
Reference<XResultSet> rs = stmt->executeQuery(sql.makeStringAndClear()); Reference<XResultSet> rs = stmt->executeQuery(sql.makeStringAndClear());
Reference<XRow> xRow(rs, UNO_QUERY_THROW); Reference<XRow> xRow(rs, UNO_QUERY_THROW);
rs->next(); // fetch first and only row if (!rs->next()) // fetch first and only row
return false;
rtl::OUString sColName = xRow->getString(1); // first column is Collation name rtl::OUString sColName = xRow->getString(1); // first column is Collation name
return !sColName.isEmpty() && !sColName.endsWith("_ci"); return !sColName.isEmpty() && !sColName.endsWith("_ci");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment