Bug 46587 - : Report Displays a Number incorrectly if formatted as 'number' but correctly if format described as 'text'.
Summary: : Report Displays a Number incorrectly if formatted as 'number' but correctly...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-24 12:21 UTC by michael.shergold
Modified: 2012-08-06 11:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Report shows both phone numbers printed. (18.76 KB, application/vnd.sun.xml.base)
2012-02-24 12:21 UTC, michael.shergold
Details

Note You need to log in before you can comment on or make changes to this bug.
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.