[hibernate-dev] DatabaseMetaData question

Steve Ebersole steve at hibernate.org
Fri Jul 27 20:32:52 EDT 2012


Anyone know if there is a (standard JDBC) way to know if the names 
returned in the various result sets from DatabaseMetaData are quoted names?

For example, DatabaseMetaData.getTables(...) returns a ResultSet that 
includes, amongst other stuff, catalog name, schema name and table name. 
  But I need to know if those names are quoted.

Do I just have to leverage the DatabaseMetaData values like:
storesMixedCaseQuotedIdentifiers
storesLowerCaseQuotedIdentifiers
storesUpperCaseQuotedIdentifiers
storesUpperCaseIdentifiers
storesLowerCaseIdentifiers

and use them to decipher the incoming text based on case?  Is that 
really the only/best option?  Or am I missing something?


-- 
steve at hibernate.org
http://hibernate.org


More information about the hibernate-dev mailing list