Apache OpenOffice (AOO) Bugzilla – Issue 106104
[cws hsqldb19] SQL statement errors generates confusins error messages
Last modified: 2013-08-07 15:45:09 UTC
Tested on Win 7, OO.o 3.2 CWSHSQLdb 10-16-09, hsqldb.jar 10-20-09 To reproduce: Open attached Bug Doc Go to Tables Select New view Switch to SQL view Enable SQL direct Copy the following stateemnt SELECT cu.customer_id AS ID, CONCAT(cu.first_name, ' ', cu.last_name) AS name, a.address AS address, a.postal_code AS "zip code", a.phone AS phone, city.city AS city, country.country AS country, IF(cu.active, 'active', '') AS notes, cu.store_id AS SID FROM customer AS cu JOIN address AS a ON cu.address_id = a.address_id JOIN city ON a.city_id = city.city_id JOIN country ON city.country_id = country.country_id Run the query --------------------------- Debug Output --------------------------- Error: ASSERT: TransactionManager... "Owner instance not right initialized yet. Call was rejected! Normaly it's an algorithm error ... wrong usin of class!" From File d:/src/cws/hsqldb19/ooo/framework/source/threadhelp/transactionmanager.cxx at Line 385 After selecting ignore OO.o displays an error dialog with error: user lacks privlidges or object not found CONCAT
Created attachment 65479 [details] bug document
Assign to developer
This might be more appropriate as an error in the error message. The first statement does have a mistake in the CONCAT funciton. Fix that with: SELECT cu.customer_id AS ID, CONCAT(CONCAT(cu.first_name, ' '), cu.last_name) AS name, a.address AS address, a.postal_code AS "zip code", a.phone AS phone, city.city AS city, country.country AS country, IF(cu.active, 'active', '') AS notes, cu.store_id AS SID FROM customer AS cu JOIN address AS a ON cu.address_id = a.address_id JOIN city ON a.city_id = city.city_id JOIN country ON city.country_id = country.country_id So - the IF is wrong for the HSQLdb dialect, but try to run it and the same error as above is generated from the C++ runtime, the OO.o error dialog box however now shows: user lacks privlidges or object not found IF Finally - if I clean it up and just pull out (what seems like a legit IF clause to me) the query runs, and creates the view. SELECT cu.customer_id AS ID, COALESCE(cu.first_name || ' ' || cu.last_name, cu.last_name, cu.first_name, '') AS name, a.address AS address, a.postal_code AS "zip code", a.phone AS phone, city.city AS city, country.country AS country, -- IF cu.active <> FALSE THEN -- 'active' -- ELSE -- '' -- END AS notes, 'active' AS notes, cu.store_id AS SID FROM customer AS cu JOIN address AS a ON cu.address_id = a.address_id JOIN city ON a.city_id = city.city_id JOIN country ON city.country_id = country.country_id
Created attachment 65523 [details] bug document with example table
Adjust target
Change target to 3.4.
Just change target.