mat icon indicating copy to clipboard operation
mat copied to clipboard

Escaping ${snapshot} in oql commands

Open rudnevr opened this issue 7 months ago • 0 comments
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>
`

rudnevr avatar Apr 03 '25 09:04 rudnevr