Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Alias names in MySQL queries ignored in Base unless function applied in SQL | ||
---|---|---|---|
Product: | Base | Reporter: | atpat <tony.patman> |
Component: | code | Assignee: | marc.neumann |
Status: | CLOSED FIXED | QA Contact: | issues@dba <issues> |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | OOO300m9 | ||
Target Milestone: | OOo 3.3 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- | ||
Issue Depends on: | |||
Issue Blocks: | 97765 |
Description
atpat
2008-12-10 12:54:38 UTC
I have a problem which I suspect has the same root cause as this one. There was a tightening up of the mysql-connector behaviour as decribed here: http://bugs.mysql.com/bug.php?id=40256 In my case the result of a query including aliases malfunctioned, producing wrong data in the wrong columns. The work-around was to append: ?useOldAliasMetadataBehavior=true to the name of the database in the 'Database Properties' dialog. Please can you make the neccessary changes to the openoffice code. I think from the reports we have at https://bugzilla.redhat.com/show_bug.cgi?id=523879 that we can "confirm" this at least. fs->oj: Can reproduce this: Executing the query SELECT `ID` AS `ID_V`, `name` AS `name_V` FROM `testdb`.`names` gives me two columns named "ID" and "name", that is, the aliases are completely ignored. I don't think we should *always* append the "useOldAliasMetadataBehavior=true" parameter to the connection URL. Finally, the change in Connector/J was made for a reason ... I somehow doubt that the new behavior is "compliant", though https://bugzilla.redhat.com/show_bug.cgi?id=523879 cites a piece of documentation which claims this. Anyway, I think we should introduce another driver setting which controls this behavior, and is supported by our MySQL/JDBC driver only. changing platform to "All" Fixed in cws dba33d. No new setting necessary for MySQL Please verify. Thanks. verified in CWS dba33d find more information about this CWS, like when it is available in the master builds, in EIS, the Environment Information System: http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba33d |