Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
2.22.1
-
None
-
None
-
Unknown
Description
When i try to do upsert using MySQL with ON DUPLICATE KEY clause i got en exception but only when i use more than one column.
// Working example:
sql:INSERT INTO table (`content`, `source`) VALUES (#, #) ON DUPLICATE KEY UPDATE `content`=VALUES(`content`)?batch=true
// Exception example (No endpoint could be found for: `source`=VALUES(`source`)?batch=true, please check your classpath contains the needed Camel component jar) :
sql:INSERT INTO table (`content`, `source`) VALUES (#, #) ON DUPLICATE KEY UPDATE `content`=VALUES(`content`), `source`=VALUES(`source`)?batch=true