Bug 46587

Summary: : Report Displays a Number incorrectly if formatted as 'number' but correctly if format described as 'text'.
Product: LibreOffice Reporter: michael.shergold
Component: BaseAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: bfo.bugmail, robert, sasha.libreoffice
Priority: medium    
Version: 3.5.0 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: Report shows both phone numbers printed.

Description michael.shergold 2012-02-24 12:21:39 UTC
Created attachment 57607 [details]
Report shows both phone numbers printed.

Problem description: 
Report Displays a Number incorrectly if formatted as 'number' but correctly if format described as 'text'

Steps to reproduce:
1. ....
Database from an Excel file contains 11 digit phone numbers 
2. ....
Query shows all
3. ....
Report showing slots configured as Number and Text show differences.   There is no warning given is this is the corrct behaviour resulting in report showing last three digits of phone number incorrectly/
See attached database Table1 Query1 and Report1

Current behavior:

Expected behavior:

Platform (if different from the browser): 
              
Browser: Chrome
Comment 1 sasha.libreoffice 2012-05-24 03:14:07 UTC
Thanks for bugreport
Please, verify if in last version of LibreOffice still reproducible

And if reproducible, please attach screenshot where number shown correct and another where number is wrong.
Comment 2 Robert Großkopf 2012-07-08 11:21:59 UTC
Your phone-number is formated as VARCHAR in the table. What should the report do with that formatted as number?
I have changed the query in your database:
SELECT "TOWN", "POSTCODE", CONVERT ( "TELEPHONE" , INTEGER ) AS "Number", "TELEPHONE" FROM "Table1"
... and then linked it to the report. the filed "Number" is correctly shown in a number-format.
Comment 3 bfoman (inactive) 2012-08-06 11:23:02 UTC
As per comment 2.
Do not hesitate to reopen in case of mistriage.