diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-03-30 19:38:55 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-04-01 10:46:11 +0200 |
commit | bc6f350d17b9e80e66add73fb6743b16db320b2c (patch) | |
tree | c8bc66de6a391e29762b59a8e694eaf580cb0efa | |
parent | 69cd327c65bd0af169c9330bbc1f4a47c975c0d3 (diff) |
tdf#131712: fix crash on table with non null float field (mysql native)
See bt with infinite loop here:
http://bugs.documentfoundation.org/attachment.cgi?id=159161
Change-Id: Iaa4e998c640c414dec60a72d5977f8d6a6a8433f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91379
Tested-by: Jenkins
(cherry picked from commit 192ee96db3bc3544c388034b19fa7a9cd6e7537d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91386
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
(cherry picked from commit 9e72262b420bad1e54287e35463be55769063608)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91394
Reviewed-by: Xisco FaulĂ <xiscofauli@libreoffice.org>
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Tested-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx index ddaba5fc9e45..984914016a13 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx @@ -330,6 +330,7 @@ ORowSetValue OPreparedResultSet::getRowSetValue(sal_Int32 nColumnIndex) case MYSQL_TYPE_LONGLONG: return getLong(nColumnIndex); case MYSQL_TYPE_FLOAT: + return getFloat(nColumnIndex); case MYSQL_TYPE_DOUBLE: return getDouble(nColumnIndex); case MYSQL_TYPE_TIMESTAMP: |