Apache OpenOffice (AOO) Bugzilla – Issue 18074
WHERE and HAVING clauses in MySQL SQL
Last modified: 2006-05-31 14:29:06 UTC
The sql asumes that a constant in a WHERE or HAVING statement is a colunm name. eg SELECT * from table WHERE col1 = "N"; "N" is assumed to be a colunm. SELECT 8 from table; would work. The ";" do not seem to be required in OO.
The example which would work should be: SELECT * from table; the example which does not work inOO will work if submitted directly to MySQL providing the table and colunm names are valid.
rabromley, I do not completely get you here. Do you mean that SELECT * from table WHERE col1 = "N" should work when submitted via OOo? If so - this will no be the case, and this is no bug. The standard SQL character for string constants is ', not ". MySQL implements an extension of the standard by accepting ". OOo will not implement this extension, because it's MySQL specific, and OOo is expected to work with more databases than MySQL. So unless so say that I misunderstood you here, I am going to mark this here as INVALID.
marking as INVALID due to missing response from the submitter for 3 weeks
closing
change subcomponent to 'none'