Apache OpenOffice (AOO) Bugzilla – Issue 68601
wrong column names / data when executing sample query on given MySQL database
Last modified: 2008-02-13 06:26:40 UTC
(MySQL 5.1, MySQL Connector/J 3.1.13 - import http://www.openoffice.org/nonav/issues/showattachment.cgi/38494/i68598.sql into a MySQL database of your choice - create a MySQL/JDBC database document connecting to this database - in this document, open a new query design in SQL mode - enter the following SQL statement SELECT `projects`.`Name` AS `Project name`, `parent projects`.`Name` AS `Parent project name`, `employees`.`Name` AS `Lead`, `release`.`Name` AS `Release`, 0 AS `sub projects`, `projects`.`InitialEffortMin` AS `init effort (min)`, `projects`.`InitialEffortMax` AS `init effort (max)`, `projects`.`Comments`, `projects`.`EndDate`, `categories`.`Name` AS `Category`, `projects`.`Status`, `projects`.`URL`, `progress`.`Name` AS `Progress`, `teams`.`Name` AS `Team` FROM `progress` AS `progress` RIGHT OUTER JOIN ( `employees` AS `employees` RIGHT OUTER JOIN ( `projects` AS `projects` LEFT OUTER JOIN `release` AS `release` ON `projects`.`Release` = `release`.`ProductID` ) ON `employees`.`EmployeeID` = `projects`.`Lead` ) ON `progress`.`ProgressID` = `projects`.`Progress`, `projects` AS `parent projects`, `categories` AS `categories`, `teams` AS `teams` WHERE ( `parent projects`.`ProjectID` = `projects`.`ParentProject` AND `categories`.`CategoryID` = `projects`.`Category` AND `teams`.`TeamID` = `projects`.`Team` ) AND ( ( `projects`.`ParentProject` IS NOT NULL ) ) - execute the statement => there are two columns "Team" at the end of the result set, and the column "EndDate" is completely missing. - switch on "Execute SQL command directly" in the toolbar - execute the statement => the columns in the result set are as expected
targeting to 2.0.4 in agreement with QA (MSC)
This used to work in m175. It broke somewhere between m175 and m181, but cannot find out in more detail, since the query did not work before m181 because of other bugs. Probably, this is a regression of CWS qiq.
fixed in CWS dba204d 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=SRC680%2Fdba204d
verified in CWS dba205a 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=SRC680%2Fdba205a
reassign to msc
seen in OOH680:m6, closing