[R2DBC-39] MariadbResult.getRowsUpdated() fails with ClassCastException Created: 2021-09-08  Updated: 2021-09-08  Resolved: 2021-09-08

Status: Closed
Project: MariaDB Connector/R2DBC
Component/s: Specification
Affects Version/s: 1.1.0-beta
Fix Version/s: 1.0.3, 1.1.1-rc

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


 Description   

see https://github.com/mariadb-corporation/mariadb-connector-r2dbc/issues/22



 Comments   
Comment by Diego Dupin [ 2021-09-08 ]

Resultset.getRowsUpdated() now can fail with classcastexception.
Since capability CLIENT_DEPRECATE_EOF is not set since 1.1, in order to permit identification of OUTPUT parameter resultset, all commands doesn't end with an OK_Packet.
Command can be an 'INSERT ... RETURNING *' for example ending EOF_Packet. This use case are to be taken care.

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