To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=102793
                 Issue #|102793
                 Summary|Ambigouos ColumnNaming in Subform WHERE clause
               Component|Database access
                 Version|OOO310m9
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|none
             Assigned to|fs
             Reported by|sos





------- Additional comments from s...@openoffice.org Mon Jun 15 12:26:04 +0000 
2009 -------
This problem occurs only when using a connection to a External database in my 
case a ODBC or Native connection to a MySQL database.

When defining a subform There is something wrong with the "SQL-translation" 
behind de Matster and Slave fields definitions who are in the background 
translated to a "WHERE clause" Thise clause contains culumnNaming without 
the "TableName" and thats produce a error.

as I can not gives a sample Document, i gives the user-made SELECT clause and 
the system-made WHERE clause

SELECT `tbl_vkp_parents`.`parent`, `tbl_leveranciers_copy`.`KLNR`, 
`tbl_leveranciers_copy`.`toestand`, `tbl_leveranciers_copy`.`Uithangbord`, 
`tbl_leveranciers_copy`.`Firma`, `tbl_leveranciers_copy`.`Aanspreking` FROM 
`tbl_vkp_parents` AS `tbl_vkp_parents`, `tbl_leveranciers_copy` AS 
`tbl_leveranciers_copy` WHERE `tbl_vkp_parents`.`klnr` = 
`tbl_leveranciers_copy`.`KLNR`


SELECT `tbl_vkp_parents`.`parent`, `tbl_leveranciers_copy`.`KLNR`, 
`tbl_leveranciers_copy`.`toestand`, `tbl_leveranciers_copy`.`Uithangbord`, 
`tbl_leveranciers_copy`.`Firma`, `tbl_leveranciers_copy`.`Aanspreking` FROM 
`tbl_vkp_parents` AS `tbl_vkp_parents`, `tbl_leveranciers_copy` AS 
`tbl_leveranciers_copy` WHERE ( ( `tbl_vkp_parents`.`klnr` = 
`tbl_leveranciers_copy`.`KLNR` ) AND ( ( `parent` = :link_from_parent ) ) ) AND 
( 0 = 1 )

I supose "AND ( ( `parent` =" must be "AND ( ( `tbl_vkp_parents`.`parent` ="  

There is NO Workaround:
- Using a Alias Column names is not working: The UI alows entering the Alias 
ColumnNames but gives a error saying the Alias names are not found as 
ColumnNames.

- Using a Query as Source for the SubForm leads to the same error's

---------------------------------------------------------------------
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: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to