Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mysql): make multistatements parameter optional #249

Merged

Conversation

slsyy
Copy link
Contributor

@slsyy slsyy commented Dec 22, 2024

The #208 PR introduced an optimisation, which requires the multiStatements=true parameter in connection string to work properly

It looks like that the requirement for that parameter (which is stated in README.md) was not honored by users (e.g #240), so I want to keep the old behavior for convenience

This commit:

  • remove mention about parameter requirement from README.md
  • revert default to one query per one statement
  • allows to keep one query per multiple statements logic with a testfixtures.AllowMultipleStatementsInOneQuery flag
  • some tests for both use cases

The go-testfixtures#208 PR introduced an optimisation, which requires the
`multiStatements=true` parameter in connection string to work properly

It looks like that the requirement for that parameter (which is stated
in `README.md`) was not honored by users (e.g go-testfixtures#240), so I want to
keep the old behavior for convenience

This commit:
* remove mention about parameter requirement from `README.md`
* revert default to `one query per one statement`
* allows to keep `one query per multiple statements` logic with a
  `testfixtures.AllowMultipleStatementsInOneQuery` flag
* some tests for both use cases
@slsyy slsyy requested a review from andreynering December 22, 2024 21:31
@slsyy slsyy merged commit 2d3ec07 into go-testfixtures:master Dec 22, 2024
2 checks passed
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.

2 participants