asyncer-io / r2dbc-mysql

Reactive Relational Database Connectivity for MySQL. The official successor to mirromutth/r2dbc-mysql(dev.miku:r2dbc-mysql).
https://r2dbc.io
Apache License 2.0
209 stars 21 forks source link

[feature] Support for Stored Procedure Execution #245

Open jchrys opened 9 months ago

jchrys commented 9 months ago

Is your feature request related to a problem? Please describe. Currently, there is no support for executing stored procedures in our application, which limits our ability to interact with databases efficiently.

Describe the solution you'd like

Additional context

mirromutth commented 9 months ago

It is already supported, but MySqlResult emit wrong type, see also my answer.

It should be OutSegment instead of RowSegment, it can be checked by ServerStatus.PS_OUT_PARAMETERS. Unfortunately, if we set Capability.DEPRECATE_EOF on initialization, it seems that ServerStatus.PS_OUT_PARAMETERS is not returned until after the row packet has ended.

So there we should do 3 things: