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

[r2dbc-mysql] Fix getColumnMetadatas() of JasyncMetadata #391

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

davin111
Copy link
Contributor

@davin111 davin111 commented Apr 13, 2023

Resolve #390.

Also, I modified the way to build a map of ColumnMetadata (using reversed()). Because originally the doc about method implementation (getColumnMetadata() and contains()) of r2dbc interface RowMetadata which says When a get method contains several columns with same name, then the value of the first matching column will be returned has been potentially violated (the last is used, not the first). Although this is meaningless because currently the only implemented method of ColumnMetadata is getName().

@oshai
Copy link
Contributor

oshai commented Apr 17, 2023

Thanks for the issue and contribution. If possible, consider adding a test similar to: https://github.com/jasync-sql/jasync-sql/blob/master/r2dbc-mysql/src/test/java/com/github/jasync/r2dbc/mysql/integ/JasyncR2dbcIntegTest.kt

Hopefully this will prevent future regression.

@davin111
Copy link
Contributor Author

@oshai Ok, I'll try to add commits for tests soon.

@davin111
Copy link
Contributor Author

@oshai I added a test which failed before this PR and passes now.

@oshai oshai merged commit 378cf98 into jasync-sql:master Apr 18, 2023
3 checks passed
@oshai
Copy link
Contributor

oshai commented Apr 18, 2023

Thanks for contributing!

@oshai
Copy link
Contributor

oshai commented Apr 18, 2023

Releasing it in 2.1.24.

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

Successfully merging this pull request may close these issues.

[r2dbc-mysql] getColumnMetadatas() of JasyncMetadata lose columns with the same names
2 participants