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

fix: PgDatabaseMetaData.getTables() should return UPPERCASE column names as per spec #2092

Merged
merged 2 commits into from Mar 22, 2021

Conversation

davecramer
Copy link
Member

The only questionable thing is exposing this method publicly and removing final on Field.columnName

@davecramer
Copy link
Member Author

should we cherry pick this into 42.2 ? I think so.

@davecramer davecramer merged commit e912c6c into pgjdbc:master Mar 22, 2021
@davecramer davecramer deleted the uppercase_metadata_tables branch March 22, 2021 12:22
@davecramer davecramer changed the title fix: PgDatabaseMetaData should return UPPERCASE column names as per s… fix: PgDatabaseMetaData.getTables() should return UPPERCASE column names as per s… Mar 22, 2021
@davecramer davecramer changed the title fix: PgDatabaseMetaData.getTables() should return UPPERCASE column names as per s… fix: PgDatabaseMetaData.getTables() should return UPPERCASE column names as per spec Mar 22, 2021
davecramer added a commit to davecramer/pgjdbc that referenced this pull request Mar 22, 2021
pgjdbc#2092)

* fix: PgDatabaseMetaData should return UPPERCASE column names as per spec, fixes pgjdbc#830

* fix javadoc errors
davecramer added a commit to davecramer/pgjdbc that referenced this pull request Mar 22, 2021
davecramer added a commit that referenced this pull request Apr 15, 2021
…ERCASE column names as per spec (#2104)

* fix: PgDatabaseMetaData should return UPPERCASE column names as per s… (#2092)

* cherry-pick PR #2092 PgDatabaseMetaData.getTables() should return UPPERCASE column names as per spec
@yan-hic
Copy link

yan-hic commented Dec 8, 2021

@davecramer we are on 42.2.9 and didn't realize the change. Exactly what we need. Before we upgrade, can you confirm this will return uppercase for tables, columns but also indices (and columns thereof) ?

@davecramer
Copy link
Member Author

getColumns returns upper case field names. getIndexInfo does not, however getString("INDEX_NAME") will work as expected.

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.

None yet

2 participants