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

Using named query parameters doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 2.14.0
    • 2.15.0
    • camel-sql
    • None
    • Windows7, ActiveMq 5.10, Camel 2.14, MySQL Server 5.6

    • Unknown

    Description

      Reference: http://camel.465427.n5.nabble.com/Using-named-query-parameters-td5758002.html

      Excerpt:

      Under http://camel.apache.org/sql-example.html at the very bottom it says:

      Notice in the SQL queries below we use named parameters which must start with prefix ':#' and then the name, eg :#amount. Then Camel will bind that parameter with the given name, from the
      message body (if its a java.util.Map) or from a message header with the name. If none parameter could be found, Camel throws an exception.

      If I set a wrong parameter in the sql.properties I don't get any exception:

      sql.insertPosition=insert into mydb.test (col1) values (':#DoesNotExist')

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            Router Josef Awad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: