Steps to reproduce:
1) start a process instance with a variable foo and the value bar_123
2) login into cockpit
3) go to the runtime process instance view of the specific process instance
4) search for the variable inside the variables tab by using this query:
The variable foo is not returned.
The variable foo is found.
The following sql statement does not return the variable
When the sql statement is changed as follows (ESCAPE '\' has been added):
then the variable is found