Zaid-Ajaj / Npgsql.FSharp.Analyzer

F# analyzer that provides embedded SQL syntax analysis, type-checking for parameters and result sets and nullable column detection when writing queries using Npgsql.FSharp.
MIT License
137 stars 9 forks source link

Escape messages in Ubik #36

Closed sudqijawabreh closed 3 years ago

sudqijawabreh commented 3 years ago

Proposed Changes

Escape Messages before printing them in the console. I get an exception when ubik analyzes an sql statement that has missing parameters. The error looks like this "Missing parameters [user_id:bigint] for this parameter set".

Types of changes

What types of changes does your code introduce to BinaryDefense.FSharp.Analyzers? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Zaid-Ajaj commented 3 years ago

Thanks @sudqijawabreh for the PR and the fix 🙏 merged and published this as of v3.28 of Ubik 🚀 it should be available soon from nuget