Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Le 07/09/11 18:34, John Mullen a écrit :

Hi John,



SELECT  1.00, "CONTRACTS.Rental" FROM "CONTRACTS"

this returns  1.00    150

Any idea why?

OK, I tested further and this is IMHO a bug.

With SQL preprocessing on, i.e. the default LibO behaviour, if your
decimal has figures after the decimal point, e.g. value 167.34, then
your query will display the value correctly, however if the value is an
integer, then despite the "digits after decimal", it will not display
the double zero digits of a value such as 155.00.

With SQL preprocessing turned off, the trailing digits will be displayed
on the value fetched from the field, but then the manually entered 1.00
value gets interpreted as an integer and the trailing zeros removed !!!.


So the problem looks to be somewhere in both the LibO SQL parser and
TYPE identification (perhaps inter-related).


Alex



-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.