0
我想引用屬性值「myProperty的」使用在SQL存儲組件的簡單表達,但我得到一個錯誤說,駱駝期待一個SIMPLE_EXP_TOKEN簡單表達SQL存儲組件
這是不支持使用SQL存儲?
SUBNUMBERS(
INTEGER ${properties:myproperty},
INTEGER ${headers.num2},
OUT INTEGER resultofsub
)
我想引用屬性值「myProperty的」使用在SQL存儲組件的簡單表達,但我得到一個錯誤說,駱駝期待一個SIMPLE_EXP_TOKEN簡單表達SQL存儲組件
這是不支持使用SQL存儲?
SUBNUMBERS(
INTEGER ${properties:myproperty},
INTEGER ${headers.num2},
OUT INTEGER resultofsub
)
丫的,因爲你在簡單表達未在語法支持使用冒號:
: https://github.com/apache/camel/blob/master/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/template/grammar/sspt.jj#L145
歡迎您登錄一個JIRA,並嘗試提供一個補丁,包括結腸和單元測試還可以理解 http://camel.apache.org/support.html http://camel.apache.org/contributing.html
甲github上PR是最容易 https://github.com/apache/camel/
嘗試將$ {properties:myproperty}添加到某個標題,然後在sql存儲的表達式中使用該標題。有一個拉動請求https://github.com/apache/camel/pull/1673應該解決這個問題。 –