[RESOLVED] NVL() equivalent in codeql #8655
Replies: 1 comment
-
A simple version:
The disadvantage is this just stringifies the arg and it can't be clicked to show the arg we're referring to. A little better: use a placeholder, here the method access itself:
This is pretty good, though it's not very principled as it's tricky for other QL to tell when the placeholder has been used and when it hasn't. Finally here's a fully principled solution using
Note that |
Beta Was this translation helpful? Give feedback.
-
I'm trying to list all sources, along with it's argument:
It works fine with getParameter() but not getInputStream().
getInputStream()
does not have an argument and ma.getAnArgument() will filter it out in the result set.How can I ask codeql to show the argument when available, and show "null" when not available? Similar to NVL() in SQL query.
Beta Was this translation helpful? Give feedback.
All reactions