[R2DBC-22] Support bind variables in R2DBC Created: 2021-03-24  Updated: 2021-06-17  Resolved: 2021-06-17

Status: Closed
Project: MariaDB Connector/R2DBC
Component/s: documentation
Affects Version/s: None
Fix Version/s: 1.0.2

Type: Task Priority: Major
Reporter: Lukas Eder Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5h
Original Estimate: Not Specified


 Description   

The current implementation of the R2DBC driver throws an UnsupportedOperationException with message "Binding parameters is not supported for the statement '%s'"

(I couldn't create an issue in the R2DBC project)



 Comments   
Comment by Lukas Eder [ 2021-03-24 ]

My bad. I was using $1, $2 parameter markers, erroneously believing that R2DBC imposed this syntax on all drivers, when in fact, drivers are free to choose their own syntax. I think it would be worth showing a quick example on this page here using bind variables: https://github.com/mariadb-corporation/mariadb-connector-r2dbc. Coming from the JDBC world, one might expect ? to work...

Comment by Diego Dupin [ 2021-03-25 ]

good point.
I'll add examples with question mark parameters for next release

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