[R2DBC-89] sessionVariable wrong parsing Created: 2023-09-13  Updated: 2023-09-15  Resolved: 2023-09-15

Status: Closed
Project: MariaDB Connector/R2DBC
Component/s: configuration
Affects Version/s: None
Fix Version/s: 1.2.0

Type: Bug Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 3d
Original Estimate: Not Specified


 Description   

When using connection string, sessionVariables option won't work when value contains comma.
Actual implementation of

r2dbc:mariadb://localhost:3306/db?sessionVariables=sql_mode=TRADITIONAL,NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY

won't be considered like:

set sql_mode='TRADITIONAL,NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY';

but like command

set sql_mode=TRADITIONAL, NO_AUTO_VALUE_ON_ZERO=null, ONLY_FULL_GROUP_BY=null;



 Comments   
Comment by Diego Dupin [ 2023-09-15 ]

sessionVariable option format is now changed from Map<String, String> to Map<String, Object>

Generated at Thu Feb 08 03:32:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.