summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
index 742b3c4f26f5..106ad775e7e5 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
@@ -63,7 +63,9 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column)
Reference<XResultSet> rs = stmt->executeQuery(sql.makeStringAndClear());
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
return !sColName.isEmpty() && !sColName.endsWith("_ci");