New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB Connector: SQL parser doesn't recognize parameters for LIKE #698
Comments
|
I think you got an error? This error should have been shown at the action configuration time (see also #718). So it's nothing to do with the datamapper, but with the DB connector parser instead. That said, will try to fix it. |
|
@Stefan365 When fixing this I think your second example is slightly wrong as I think the % sign needs to be part of the input param itself. So as you state in your first example it should be able to handle:
where the task param value can be set to 'Joe%'. |
|
@Stefan365 as far as your datamapper screenshots, you can only get at the moment because of #718. So now you arrive at the datamapper with an invalid dataShape. You can verify the error in your javascript console when saving the action config (but bc of #718, it keeps going) |
|
@KurtStam this is my result with |
|
@Stefan365 Like I said before the inputDataShape was calculated incorrectly. This is what my commit fixes. So with that fix you should be able to issue exactly what you did: |
|
Please reopen if this is still an issue for you. |
|
hi @KurtStam , Checked on CR1(see https://gist.github.com/dsimansk/b839cbd39e553ec4680bcd8a3b47c3ff) and Syndesis master branch. |
|
@KurtStam one more thing, Is there any possibility to allow " '%:#param' syntax" in the future? |
|
@Stefan365 You're right, I mistyped above, there are not supposed to be any quotes. At the moment finding a parameter relies on the fact that it starts with |
|
@KurtStam In that case (no quotes only) LIKE cannot be used at all. |
|
@Stefan365 I added this test back then: and it's tested with Oracle, Postgresql, Mysql and Derby. |
|
@Stefan365 I would say that if the Camel SQL component starts supporting it, then we should add support for it too. Can you open a ticket with the Camel project? |
|
hi @KurtStam since July I don't work for RedHat, contact please someone else from syndesis-qe team. |



e.g.
this is ok:
but datamapper cannot recognize these parameters:
The text was updated successfully, but these errors were encountered: