Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.2
    • Fix Version/s: fuse-7.3
    • Component/s: Camel
    • Labels:
      None
    • Environment:
      • Red Hat Fuse 7.2
      • camel-sql component
    • Sprint:
      Fuse 7.3 Sprint 42 - Bug fix
    • Workaround Description:
      • Set resolved nested simple expression once in a message header or property. And use it from camel-sql.

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rnetuka Radovan Netuka
                  Reporter:
                  tomonari.yamashita Tomonari Yamashita
                  Tester:
                  Jan Bouska
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: