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

added flag for PIPES_AS_CONCAT connection setting #2038

Closed
wants to merge 3 commits into from

Conversation

jakerieger
Copy link

Fix for PlanetScale (and other) databases that throw an error when the PIPES_AS_CONCAT connection setting is set.

#2034

Added a flag to MySqlConnectSettings struct that defaults to true, per request.

@@ -89,6 +90,7 @@ impl MySqlConnectOptions {
ssl_ca: None,
statement_cache_capacity: 100,
log_settings: Default::default(),
disable_pipes_as_concat: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've inverted the logic here, this will never send PIPES_AS_CONCAT even though that should remain the default.

The flag should just be called pipes_as_concat and include the flag if true.

It also needs a public setter so people can change it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. Should be fixed per your suggestions.

@jakerieger jakerieger closed this Aug 11, 2022
@marcustut
Copy link
Contributor

@jakerieger How come this PR was closed?

@abonander
Copy link
Collaborator

Dunno, it wasn't me.

@jakerieger
Copy link
Author

@marcustut Wasn't sure if I needed to open a new one to fix my original commit. Looks like I don't.

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.

3 participants