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

camel-elsql - Does not read named parameter from header properties

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.18.0
    • Fix Version/s: 2.18.1, 2.19.0
    • Component/s: camel-elsql
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Camel-elsql could not lookup for parameters from message headers. Problem is here https://github.com/apache/camel/blob/camel-2.18.0/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlSqlMapSource.java#L70

      Sample route:

      from("direct:projects")
        .setHeader("lic", constant("ASF"))
        .setHeader("min", constant(123))
        .to("elsql:projects:com/foo/projects.elsql")
      

      ElSql:

      @NAME(projects)
        SELECT *
        FROM projects
        WHERE license = :lic AND id > :min
        ORDER BY id
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                tturek Tomas Turek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: