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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.0
    • 2.18.1, 2.19.0
    • camel-elsql
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: