You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2019/03/11 07:17:00 UTC

[jira] [Assigned] (CAMEL-13305) camel-sql cannot resolve nested simple expression

     [ https://issues.apache.org/jira/browse/CAMEL-13305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Cosentino reassigned CAMEL-13305:
----------------------------------------

    Assignee: Andrea Cosentino

> camel-sql cannot resolve nested simple expression
> -------------------------------------------------
>
>                 Key: CAMEL-13305
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13305
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sql
>            Reporter: Radovan Netuka
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 3.0.0, 2.23.2, 2.24.0, 3.0.0-M2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> - camel-sql cannot resolve nested simple expression
>  - For example, `to("sql:insert into T_EXAMPLE values (:#$\{header.header1[${header.CamelLoopIndex}][COLUMN_NAME1]})")` is resolved as `insert into T_EXAMPLE values (?][COLUMN_NAME1]})` instead of `insert into T_EXAMPLE values ( ? )}`. And database driver will generate a syntax error.
>  - FYI, `.setHeader("header1",simple("$\{header.header1[${header.CamelLoopIndex}][COLUMN_NAME1]})"))` is resolved correctly. So probably sql-camel cannot properly parse the range of simple expression.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)