summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity')
-rwxr-xr-x[-rw-r--r--]connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
index ba8c36da83ce..49873f8e5841 100644..100755
--- a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
@@ -197,13 +197,10 @@ void OResultSetMetaData::checkColumnIndex(sal_Int32 columnIndex)
auto nColCount = m_fields.size();
if (columnIndex < 1 || columnIndex > static_cast<sal_Int32>(nColCount))
{
- OUStringBuffer buf;
- buf.append("Column index out of range (expected 1 to ");
- buf.append(sal_Int32(nColCount));
- buf.append(", got ");
- buf.append(columnIndex);
- buf.append('.');
- throw SQLException(buf.makeStringAndClear(), *this, OUString(), 1, Any());
+ OUString str = "Column index out of range (expected 1 to "
+ + OUString::number(sal_Int32(nColCount)) + ", got "
+ + OUString::number(columnIndex) + ".";
+ throw SQLException(str, *this, OUString(), 1, Any());
}
}