DECLARE and FETCH cursor operations require quotes around the cursor name in JBoss DV

Solution Unverified - Updated -

Issue

  • DECLARE cursorname FOR cmd results 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 cursorname results 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.