Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13305

camel-sql cannot resolve nested simple expression

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      • 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.

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              rnetuka Radovan Netuka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m