To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=40894 Issue #:|40894 Summary:|OO-SQL-Parser doesn't parse appropiate |IF(expression1,expression2,expression3) Component:|Database access Version:|OOo 1.1.4 Platform:|All URL:| OS/Version:|All Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|none Assigned to:|msc Reported by:|tomsontom
------- Additional comments from [EMAIL PROTECTED] Tue Jan 18 05:13:01 -0800 2005 ------- There are multiple problems when using an IF-Expression in your SQL-Statement and you can not avoid to execute the statement directly (e.g. when using the import interface): 1. IF( a > 1, col_a, col_b ): ----------------------------- You can not use white-spaces in the expression and have to type it the following: IF(a>1,col_a,col_b). This is not really a problem and has not to be fixed if tricky. 2. IF( a>1, col_a, col_b ): --------------------------- The next bug is really a really problem because the parser doesn't complain but sends the statement to the database in a wrong format. The statement that a arrives at the database looks like the following: IF( 'a>1', `col_a`, `col_b` ) at least MySQL doesn't throw any error when it encounters such an IF-expression and always treats the ***String*** as a wrong value and because of this always returns col_b. This is OpenOffice on Linux with MySQL 4.0.23 --------------------------------------------------------------------- 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]