Bug 45316 - [REPORT BUILDER] [EDITING] Grouping on prefix fails with LibO from 3.4.x
Summary: [REPORT BUILDER] [EDITING] Grouping on prefix fails with LibO from 3.4.x
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
3.5.0 RC1
Hardware: All All
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2012-01-27 08:28 UTC by spYre
Modified: 2013-08-17 08:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test document (40.57 KB, application/vnd.sun.xml.base)
2012-01-27 08:28 UTC, spYre
Details
SQL error message (french) (36.40 KB, image/png)
2012-01-27 08:29 UTC, spYre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description spYre 2012-01-27 08:28:25 UTC
Created attachment 56227 [details]
test document

The attached file is a Base document with embedded HSQLDB.
It contains one table, with some city names from France for the test, and one report designed with Report Builder extension.

In this report, the city field is grouped on prefix (1 character).

What happens executing the report :
- with OOo 3.3.x (Win7 dualboot) --> OK
- with LibO 3.3.x (LMDE vBox) --> OK
- with LibO 3.4.x (LMDE vBox) --> raises SQL error
- with LibO 3.5.0 RC1 (LMDE dualboot) --> raises SQL error
Comment 1 spYre 2012-01-27 08:29:16 UTC
Created attachment 56228 [details]
SQL error message (french)
Comment 2 Drew Jensen 2012-01-29 20:12:55 UTC
Checked w/ LibO 3.5 RC2, Ubuntu 11.04.

Can confirm, not only with the test db but using the postgres-sdbc driver also.

In the later case the error message is pretty much the same:
pq_driver: [PGRES_FATAL_ERROR]ERROR:  column "LEFT_birthCity" does not exist
LINE 1: SELECT * FROM "public"."Master" ORDER BY "LEFT_birthCity"
                                                 ^
 (caused by statement 'SELECT * FROM "public"."Master" ORDER BY "LEFT_birthCity"')

To reproduce:

open any Report Builder report definition
Open the Sort/Groupding dialog
Select any text field to group on
Under properties set "Group Interval" to 'Prefix Characters'
Any value in Group Intervval

Run the report - error
Comment 3 Robert Großkopf 2013-08-16 15:58:02 UTC
I have tested this with LO 4.1.0.4 - seems the error had been gone, but don't know why.
Same test with LO 4.0.5.2 - the error appears.
It's a regression, but don't know, if it would be fixed for LO 4.0.*
Comment 4 retired 2013-08-17 08:24:52 UTC
Can anybody verify this is fixed in 4.1? I think if so, we can set this to "WORKSFORME". People with this issue could switch to the 4.1.x branch.
Comment 5 Robert Großkopf 2013-08-17 08:47:11 UTC
Have looked for some other reports for the Report-Builder and found this:
https://bugs.freedesktop.org/show_bug.cgi?id=62248#c0

The grouping on not each values was broken. Lionel fixed it, but I don't know, which bug it was.

So let us close this bug as "Worksforme".