]
Van Halbert moved JBEDSP-1115 to TEIIDDES-329:
----------------------------------------------
Project: Teiid Designer (was: JBoss Enterprise Data Services Platform)
Key: TEIIDDES-329 (was: JBEDSP-1115)
Component/s: (was: Designer)
Affects Version/s: (was: 5.5.4)
Operations Editor does not correctly wrap user-entered SQL with
CREATE... and END
---------------------------------------------------------------------------------
Key: TEIIDDES-329
URL:
https://jira.jboss.org/jira/browse/TEIIDDES-329
Project: Teiid Designer
Issue Type: Bug
Environment: fedora 10, Designer build 3257
Reporter: Paul Nittel
I ran across this while running the E2E Updateable Web Service Test Script.
After creating the Web Service interface and initial steps of creating the InsertProduct
operation, I pasted in the SQL. When I validated the SQL, the Designer wrapped it,
beginning with the CREATE, and ending with END. Unfortunately, the terminating END is
placed immedately after the END in the pasted in text. The validation then fails when it
reaches the new word, "ENDEND". (the user needs to separate the
"ENDEND" into "END END" and it will parse correctly.
The error message is:
The query is not parsable.
Parsing error: Encountered "<EOF>" at line 1, column 464.
Was expecting:
"=" ...
The SQL winds up being:
CREATE VIRTUAL PROCEDURE BEGIN DECLARE string VARIABLES.IN_ID =
xpathvalue(ProductsWebSvc.ProdInterface.DeleteProduct.ProductIdIn,
'/*:InstrIdInput/*:ID'); DECLARE integer VARIABLES.delete_count = 0;
VARIABLES.DELETE_COUNT = DELETE FROM Updates.UpdateProduct WHERE
Updates.UpdateProduct.INSTR_ID = VARIABLES.IN_ID; IF(VARIABLES.DELETE_COUNT = 1) BEGIN
SELECT * FROM ProductDoc.goodResultsDocument; END ELSE BEGIN SELECT * FROM
ProductDoc.badResultsDocument; ENDEND
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: