To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=68601
                 Issue #|68601
                 Summary|wrong column names when executing sample query on give
                        |n MySQL database
               Component|Database access
                 Version|680m181
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|none
             Assigned to|fs
             Reported by|fs





------- Additional comments from [EMAIL PROTECTED] Mon Aug 14 04:55:38 -0700 
2006 -------
(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

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to