-
Notifications
You must be signed in to change notification settings - Fork 44
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
Implement RowMetadata.getColumnNames() #73
Comments
SELECT N AS L FROM TEST; Please note that JDBC historically has two similar methods in
Because many databases don't distinguish these names their JDBC drivers return aliases (
|
Thanks for having a look. I wasn't even aware of the distinction between labels and names. We intend to expose columns as they are represented in the result and that would be always the alias. We also need to make sure that we consistently use labels/aliases with our H2 wrapper. @katzyn can you leave a comment at r2dbc/r2dbc-spi#58 so we can improve Javadocs before merging the PR? Real column names seem to me only useful if the consumer is going to analyze results to rewrite a query or to find the original column names. |
If we have need for BOTH |
I updated Javadocs in SPI to reflect we’re using aliases/result labels and not real column names if columns are aliased. |
See r2dbc/r2dbc-spi#58
The text was updated successfully, but these errors were encountered: