Custom sql user parameters - db2 dialect

Hi,

I have tried to define my own user parameter but I cannot get it working to prompt a dialog when running a query. Examples in the pics. Datagrip version 1.0.3.

Query editor and parameter definition:



Thank you

0
5 comments

Hello Matej,

Try this pattern:

\$\{([^\{\}]*)\}

Works for me:

0

Thanks Andrey but in my case regex are still not working.

 

0

Does it help to move it on top of the pattern list?

Please attach your File | Export Settings... jar if issue remains. Thanks.

0

Unfortunately it still does not work. My current version is Datagrip  145.404-2.

Which type of setting do you need for debuggin?

0

Problem was solved by removing a not working regex that was probably preventing a match from other expressions. In my case the offending regex was ?\d+

0

Please sign in to leave a comment.