tdf#126268: first byte is not used for the sign symbol
commit2e26ef34bf1a2e5d1293e45cf3b1415d9514b056
authorXisco Fauli <xiscofauli@libreoffice.org>
Wed, 10 Jul 2019 17:06:13 +0000 (10 19:06 +0200)
committerXisco Faulí <xiscofauli@libreoffice.org>
Thu, 11 Jul 2019 13:23:17 +0000 (11 15:23 +0200)
tree105bbaaaa82e6c0641b09bafed19034b3d7e0ddb
parent721cef392f301321a632a1d9286d57cd45335649
tdf#126268: first byte is not used for the sign symbol

This code is just broken, negative numbers and positive
numbers above 25 are incorrectly migrated if using decimal.
E.g:
-1 -> 24,6
26 -> -6527'6

thus, delete it and pass the 8 bytes as they are to
lcl_double_dabble.

Note: this only fixes the positive numbers,
-1 still returns 24,6

Code introduced in 6039d2463b4cc503b963811b3b1471de3291ee09

Change-Id: Id0e249e47a91b274a247fb7e8b71353114149650
Reviewed-on: https://gerrit.libreoffice.org/75375
Tested-by: Jenkins
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
dbaccess/CppunitTest_dbaccess_tdf126268.mk [new file with mode: 0644]
dbaccess/Module_dbaccess.mk
dbaccess/qa/unit/data/tdf126268.odb [new file with mode: 0644]
dbaccess/qa/unit/tdf126268.cxx [new file with mode: 0644]
dbaccess/source/filter/hsqldb/rowinputbinary.cxx