How to ignore empty evaluations in string concat? #15785
Answered
by
owen-mc
0x73746F70626F74686572696E676D65
asked this question in
Q&A
-
Suppose you have:
both predicates return strings, though if one doesn't (predicate2 for instance), the entire row won't be output. codeql won't tell you this in output either as far as im aware of. how can i avoid this? |
Beta Was this translation helpful? Give feedback.
Answered by
owen-mc
Mar 3, 2024
Replies: 2 comments 2 replies
-
just for clarification: how can i output the row despite a missing column? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Three ways spring to mind:
The way to think about it is that |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
0x73746F70626F74686572696E676D65
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Three ways spring to mind:
The way to think about it is that
predicate2
doesn't hold for some values ofdata
. In general a predicate can have multiple value…