Closed DeagleGross closed 10 months ago
Looks amazing! An additional possible test scenarios: does it work for interpolated raw string literals? i.e.
$$"""
select * from
customers where Id = {{id}}
"""
@mgravell addressed PR comments
Many thanks.
PR adds the analysis of how
sql
parameter is passed: 1) if like an interpolated string$"select * from customers where Id={id}"
, reports DAP241; 2) if like an interpolated raw string literal$"""select * from customers where Id={id}"""
, reports DAP241; 3) if like an concatenated string"select * from customers where Id=" + id
, reports DAP242; 4) also added a special case support forstring.Format
(reports DAP242 as in the case of concatenated strings);Also supported lookup for local variables: in case
sql
argument is not passed directly, but via the local variable. Example:Closes #35