[
https://issues.jboss.org/browse/TEIID-3904?page=com.atlassian.jira.plugin...
]
Steven Hawkins updated TEIID-3904:
----------------------------------
Priority: Major (was: Critical)
There is currently only support for move rows in cursor (as that is the cursoring syntax
primarily used by the postgres odbc driver)
We can implement support for move backward (and other direction options), but this will
not in general enable updatable cursors over teiid pg/odbc - there is a lot of pg
internals that the pg driver utilizes to implement updatable cursors, so it's a
complex feature for us to support.
TEIID31100 Parsing error: Encountered "[*]move[*] backward
5831" on openquery update command
--------------------------------------------------------------------------------------------
Key: TEIID-3904
URL:
https://issues.jboss.org/browse/TEIID-3904
Project: Teiid
Issue Type: Bug
Affects Versions: 8.7.1.6_2
Environment: Red Hat JBoss Data Virtualization 6.2 on EAP6.4.0 patched to version
6.4.3,
JBoss Developer Studio 8.1.0GA with Teiid Designer plugin
9.0.3.Final.v20150810-1438-B1157
64-bit Windows 7 environment
Reporter: Steve Tran
Assignee: Steven Hawkins
Getting an error when attempting to update an Oracle Table that was virtualized in JDV.
Here's the query
update A
set do_not_use = 1
FROM OPENQUERY(HSI, 'SELECT * FROM hsi_DW_ebl.hsi_tm_pd where do_not_use is
null') A
where do_not_use is null;
{code}
[Server:cdtssoa126d-jdv-one] 21:14:35,311 WARN [org.teiid.ODBC]
(Worker975_QueryProcessorQueue8734224) TEIID40020 Error occurred:
org.teiid.jdbc.TeiidSQLException: TEIID31100 Parsing error: Encountered "[*]move[*]
backward 5831" at line 1, column 1.
[Server:cdtssoa126d-jdv-one] Was expecting: "alter" | "begin" |
"call" | "create" | "delete" | "drop" |
"exec" | "execute" | "insert" | "merge" ...
[Server:cdtssoa126d-jdv-one] at
org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:135)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:71)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.jdbc.StatementImpl.postReceiveResults(StatementImpl.java:667)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.jdbc.StatementImpl.access$100(StatementImpl.java:63)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.jdbc.StatementImpl$2.onCompletion(StatementImpl.java:515)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.client.util.ResultsFuture.done(ResultsFuture.java:135)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.client.util.ResultsFuture.access$200(ResultsFuture.java:40)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.client.util.ResultsFuture$1.receiveResults(ResultsFuture.java:79)
[teiid-client-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.RequestWorkItem.sendError(RequestWorkItem.java:1001)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.RequestWorkItem.close(RequestWorkItem.java:556)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:352)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:254)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_75]
[Server:cdtssoa126d-jdv-one] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_75]
[Server:cdtssoa126d-jdv-one] at java.lang.Thread.run(Thread.java:745)
[rt.jar:1.7.0_75]
[Server:cdtssoa126d-jdv-one] Caused by:
org.teiid.api.exception.query.QueryParserException: TEIID31100 Parsing error: Encountered
"[*]move[*] backward 5831" at line 1, column 1.
[Server:cdtssoa126d-jdv-one] Was expecting: "alter" | "begin" |
"call" | "create" | "delete" | "drop" |
"exec" | "execute" | "insert" | "merge" ...
[Server:cdtssoa126d-jdv-one] at
org.teiid.query.parser.QueryParser.convertParserException(QueryParser.java:214)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.query.parser.QueryParser.parseCommand(QueryParser.java:164)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.query.parser.QueryParser.parseCommand(QueryParser.java:140)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.Request.parseCommand(Request.java:279)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.Request.generatePlan(Request.java:363)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.Request.processRequest(Request.java:435)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.RequestWorkItem.processNew(RequestWorkItem.java:613)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] at
org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:315)
[teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
[Server:cdtssoa126d-jdv-one] ... 8 more
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)