Hi,
We are using JDBC Query to insert data into the sql server database.
using the following kind of query:
INSERT INTO ${SCHEMA_NAME}.${TABLE_NAME}(a,b,c) VALUES ('${record:value("/a")}', '${record:value("/b")}', '${record:value("/c")}')
As we are enclosing in the single quotes even for null values it is inserting empty strings. if I remove the quotes getting exception by saying invalid query as the String are not enclosed within the quotes.
So looking for a check which adds the quotes if the values is present otherwise to return the null.
Tried ${record:value("/a") != NULL ?record:value("/a") : NULL} but query failing.