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

MariadbConnectionConfiguration.fromOptions() do not handle sessionVariables #13

Closed
ishi opened this issue May 13, 2021 · 2 comments
Closed

Comments

@ishi
Copy link

ishi commented May 13, 2021

I try to connect to MariaDB and set sql_mode for the session using a connection string. Because I want to be provider independent I use factory classes to create the connection like so.

var connectionUrl= "r2dbc:mariadb://admin:pass@localhost:3306/dbname?sessionVariables=sql_mode='ANSI'";
var factoryOptions = ConnectionFactoryOptions.parse(connectionUrl);
var connectionFactory = ConnectionFactories.get(factoryOptions);

Internally MariadbConnectionConfiguration.fromOptions(factoryOptions) is used which do not handle sessionVariables.

@rusher
Copy link
Collaborator

rusher commented Jun 23, 2021

Issue created https://jira.mariadb.org/browse/R2DBC-27.
This will be in next corrective version

@ishi
Copy link
Author

ishi commented Jul 21, 2021

Thanks for the quick reaction on the issue. Can we close it since the related issue has been resolved?

@rusher rusher closed this as completed Dec 6, 2021
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

No branches or pull requests

2 participants