[teiid-issues] [JBoss JIRA] (TEIID-5076) Couchbase update syntax error

Jan Stastny (JIRA) issues at jboss.org
Mon Sep 25 15:29:00 EDT 2017


Jan Stastny created TEIID-5076:
----------------------------------

             Summary: Couchbase update syntax error
                 Key: TEIID-5076
                 URL: https://issues.jboss.org/browse/TEIID-5076
             Project: Teiid
          Issue Type: Bug
          Components: Misc. Connectors
            Reporter: Jan Stastny
            Assignee: Steven Hawkins
            Priority: Blocker


There is an issue with UPDATE queries.

For a query:
{code:sql}
UPDATE SmallA SET StringNum = NULL WHERE IntNum > 0
{code}
following error is returned:
{code}
Error: TEIID30504 Remote org.teiid.core.TeiidProcessingException: TEIID30504 Source: Query did not complete successfully: [{"msg":"syntax error - at (","code":3000}], error code: fatal
{code}

The query being pushed is invalid:
{code:sql}
UPDATE `dvqe_crud` USE KEYS '1' SET META(`dvqe_crud`).id = '1', `StringKey` = '1', `IntNum` = 1417293, `StringNum` = NULL, `FloatNum` = 14735.7998046875, `LongN      um` = 826580, `DoubleNum` = -1098869.04, `ByteNum` = 15, `DateValue` = '2006-03-06', `TimeValue` = '10:57:23', `TimestampValue` = NULL, `BooleanValue` = TRUE, `CharValue` = '2', `ShortValue` = 5303, `BigIn      tegerValue` = 608932, `BigDecimalValue` = 1229956.01, `ObjectValue` = '-70' WHERE `dvqe_crud`.`type` = 'nullSmallA' RETURNING META(`dvqe_crud`).id AS PK
{code}

Couchbase complains about a '('. And from what I found, it is the first use of META() function in the command.

On that topic I've found a note in Couchbase docs:
bq. Every document is identified by a document ID, which can be automatically generated (as a UUID) or determined by the application; the only constraints are that it must be unique within the database, and it can't be changed.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list