mat
mat copied to clipboard
Escaping ${snapshot} in oql commands
trafficstars
Hello.
When writing queries like this in xml report or in -command param of command line, how do i escape the ${snapshot} part? I tried multiple combos like$${snapshot}, etc, but can't get the right option. $$ seems to work for $, but the curly braces always fail. This works fine in UI.
<query name="test">
<param key="format" value="csv" />
<param key="filename" value="thread-test.csv" />
<param key="html.separate_file" value="true" />
<param key="limit" value="1000000" />
<command>oql "SELECT t AS Thread, ${snapshot}.getThreadStack(t.@objectId).@stackFrames AS Frame FROM java.lang.Thread t"</command>
</query>
`