diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-12-04 13:39:47 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2016-12-04 18:22:24 +0000 |
commit | 8d2f58a9922ca7352c626db06f9b8d5ca0bbaead (patch) | |
tree | 7ab5ac4ac1035ef330f4890a426c96043bb2f813 /connectivity | |
parent | 6555ec4f881f8e6ea9be19103ff51fb1bd6edb20 (diff) |
tdf#104227: fix subtypes DECIMAL/NUMERIC in resultset
bt here:
https://bug-attachments.documentfoundation.org/attachment.cgi?id=129298
See also https://bugs.documentfoundation.org/show_bug.cgi?id=104227#c13 for more details
Change-Id: Ied497cfff2f71e67161d541b90fe48bb3e2456b9
Reviewed-on: https://gerrit.libreoffice.org/31593
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/ResultSet.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx index f4911df892dd..e1007afb7a71 100644 --- a/connectivity/source/drivers/firebird/ResultSet.cxx +++ b/connectivity/source/drivers/firebird/ResultSet.cxx @@ -456,17 +456,17 @@ ORowSetValue OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_S case SQL_VARYING: return getString(nColumnIndex); case SQL_SHORT: - if(nSqlSubType == 0 || nSqlSubType == 1) //numeric or decimal + if(nSqlSubType == 1 || nSqlSubType == 2) //numeric or decimal return getString(nColumnIndex); return getShort(nColumnIndex); case SQL_LONG: - if(nSqlSubType == 0 || nSqlSubType == 1) //numeric or decimal + if(nSqlSubType == 1 || nSqlSubType == 2) //numeric or decimal return getString(nColumnIndex); return getInt(nColumnIndex); case SQL_FLOAT: return getFloat(nColumnIndex); case SQL_DOUBLE: - if(nSqlSubType == 0 || nSqlSubType == 1) //numeric or decimal + if(nSqlSubType == 1 || nSqlSubType == 2) //numeric or decimal return getString(nColumnIndex); return getDouble(nColumnIndex); case SQL_D_FLOAT: @@ -478,7 +478,7 @@ ORowSetValue OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_S case SQL_TYPE_DATE: return getDate(nColumnIndex); case SQL_INT64: - if(nSqlSubType == 0 || nSqlSubType == 1) //numeric or decimal + if(nSqlSubType == 1 || nSqlSubType == 2) //numeric or decimal return getString(nColumnIndex); return getLong(nColumnIndex); case SQL_BLOB: |