diff options
Diffstat (limited to 'connectivity/source/drivers/firebird/PreparedStatement.cxx')
-rw-r--r-- | connectivity/source/drivers/firebird/PreparedStatement.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index 648f3f678ff4..cf44aa4d238d 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx @@ -16,6 +16,11 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ + +#include <sal/config.h> + +#include <string_view> + #include "Connection.hxx" #include "PreparedStatement.hxx" #include "ResultSet.hxx" @@ -333,9 +338,9 @@ sal_Int64 toNumericWithoutDecimalPlace(const OUString& sSource) OUStringBuffer sBuffer(15); if(nDotIndex > 0) { - sBuffer.appendCopy(sNumber, 0, nDotIndex); + sBuffer.append(std::u16string_view(sNumber).substr(0, nDotIndex)); } - sBuffer.appendCopy(sNumber, nDotIndex + 1); + sBuffer.append(std::u16string_view(sNumber).substr(nDotIndex + 1)); return sBuffer.makeStringAndClear().toInt64(); } } |