Author: max.andersen(a)jboss.com
Date: 2006-11-07 05:57:40 -0500 (Tue, 07 Nov 2006)
New Revision: 10747
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/dialect/AbstractMetaDataDialect.java
Log:
ask for MixedCaseQuotedId before anything else to remedy mysql drivers that lies.
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/dialect/AbstractMetaDataDialect.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/dialect/AbstractMetaDataDialect.java 2006-11-07
06:22:12 UTC (rev 10746)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/dialect/AbstractMetaDataDialect.java 2006-11-07
10:57:40 UTC (rev 10747)
@@ -145,15 +145,18 @@
protected String caseForSearch(String value) throws SQLException {
// TODO: handle quoted requests (just strip it ?)
if(needQuote(value)) {
- if ( getMetaData().storesUpperCaseQuotedIdentifiers() ) {
+ if ( getMetaData().storesMixedCaseQuotedIdentifiers() ) {
+ return value;
+ } else if ( getMetaData().storesUpperCaseQuotedIdentifiers() ) {
return StringHelper.toUpperCase( value );
} else if( getMetaData().storesLowerCaseQuotedIdentifiers() ) {
return StringHelper.toLowerCase( value );
} else {
return value;
}
- }
- if ( getMetaData().storesUpperCaseIdentifiers() ) {
+ } else if ( getMetaData().storesMixedCaseQuotedIdentifiers() ) {
+ return value;
+ } else if ( getMetaData().storesUpperCaseIdentifiers() ) {
return StringHelper.toUpperCase( value );
} else if( getMetaData().storesLowerCaseIdentifiers() ) {
return StringHelper.toLowerCase( value );
Show replies by date