Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: SteveAkersI have a list of strings that I want to include as a parameter to my JDBC query.
For example:
Select *
from Table
where ColumnA in (?)
The "?" will be replaced by the contents of the SqlQueryFieldBindings variable.
For example:
SqlQueryFieldBindings = 'abc','def','ghi'
the ? is expected to be expanded to 'abc','def','ghi'
What the node is actually doing is: ''abc'',''def'',''ghi''
(these are two single quotes, not a single double quote)
so the SQL now goes off the DB engine looking like:
select *
from Table
where ColumnA in (''abc'',''def'',''ghi'')
which in turn returns unpredicable results or usually no data at all.
I have tried sending a string with just commas with no quotes around the strings and end up wih 'abc,def,ghi'. (the node quoted the entire string)
This is an extremely powerful capability that I would LOVE to use, so any input would be greatly appreciated.
Lavastorm 4.5.2