Bug 68656 - Postgres/ODBC: Database form referencing a column alias does not work any more
Summary: Postgres/ODBC: Database form referencing a column alias does not work any more
Status: RESOLVED DUPLICATE of bug 69147
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-28 12:00 UTC by Jan Rheinländer
Modified: 2013-12-17 13:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The database SQL dump (28.00 KB, application/x-tar)
2013-08-28 12:00 UTC, Jan Rheinländer
Details
The .odb file, reduced to the minimum to reproduce the bug (28.38 KB, application/vnd.oasis.opendocument.database)
2013-08-28 12:01 UTC, Jan Rheinländer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Rheinländer 2013-08-28 12:00:48 UTC
Created attachment 84786 [details]
The database SQL dump

I have a query that gives an alias for a column:

 "projects"."name" AS "Project"

In the report builder it is possible to select this column "Project" for grouping, but when I execute the query the error comes:

Column projects.Project does not exist

This worked in LO 3.6.

BTW I can't get around using the alias because in the actual application the value for "Projects" is composite, e.g. "name" || "description" AS "Project"

To reproduce:
- Create an empty database "cdp" with owner postgres
- Import the SQL dump into this database using pgadmin3
- Create an odbc connection in /etc/odbc.ini:
[CDP-local]
Description             = Connection to CDP database locally
Driver          = PostgreSQL Unicode
Trace           = No
TraceFile               = /tmp/psqlodbc.log
Database                = cdp
Servername              = localhost
UserName                = 
Password                = 
Port            = 
ReadOnly                = No
RowVersioning           = No
ShowSystemTables                = No
ShowOidColumn           = No
FakeOidIndex            = No
ConnSettings            =
- Open the .odb file
- Open the only report (it might ask for the password of the postgres user)
- Error message comes up
Comment 1 Jan Rheinländer 2013-08-28 12:01:28 UTC
Created attachment 84787 [details]
The .odb file, reduced to the minimum to reproduce the bug
Comment 2 Robert Großkopf 2013-08-28 16:16:09 UTC
When you are reporting special bugs for the connection to PostgreSQL, please describe it in the title. I have changed this title and others, because I can't reproduce the bugs without a Postges-Installation and a ODBC-installation.
Comment 3 Robert Großkopf 2013-09-13 17:11:29 UTC
Could it be a duplicate of https://bugs.freedesktop.org/show_bug.cgi?id=69147 ? Seems to be the same problem with an alias and order-by.
Comment 4 Jan Rheinländer 2013-09-14 05:06:45 UTC

*** This bug has been marked as a duplicate of bug 69147 ***