I ran across this using postgres 9.4 and trunk hibernate (and recent releases), in conjunction with Spring Data and JPA. When hibernate.globally_quoted_identifiers=true, the string passed in to DatabaseMetadata.isSequence() has backticks around it. The sequences Set in the class is initialised directly from the database, and does not take in to account the quoted identifiers setting.
This patch seemed like the smallest thing that would work (it fixes the immediate issue I was having). Line 201 may be unnecessary - I only saw backpacks backticks being passed in - but added it 'just in case'. |
|