Skip to content

Conversation

@Valarissa
Copy link

@Valarissa Valarissa commented Jun 22, 2020

This is a backport of #9013 to be released in 1.4.3

…intf (#9013)

* Don't use string formatting to prepare queries.

We should, when possible, use the built-in params and ? format when
preparing and executing a query. This is done to prevent SQL Injection
attacks.

* Revert some changes due to failing tests, update mssql go driver

* Add docker container startup for some MSSQL tests

* Remove acceptance test flagging, add more SQL injection protection

* Refactor MSSQL prepareTestContainer to a test helper

Also, remove all ? references and convert them to @p*
@Valarissa Valarissa changed the title Backport of #9013 Backport of "Use parameters when executing prepared statements rather than fmt.Sprintf" Jun 22, 2020
@Valarissa Valarissa closed this Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant