DECLARE and FETCH cursor operations require quotes around the cursor name in JBoss DV
Issue
-
DECLARE cursorname FOR cmdresults in error similar to:Caused by: org.teiid.api.exception.query.QueryParserException: TEIID31100 Parsing error: Encountered "[*]DECLARE[*] cursorname CURSOR" at line 1, column 1. Was expecting: "alter" | "begin" | "call" | "create" | "delete" | "drop" | "exec" | "execute" | "insert" | "merge" ... FETCH 1 IN cursornameresults in parsing error
Environment
- Red Hat JBoss Data Virtualization (DV) 6.2
- ODBC
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
