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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content