|
34 | 34 | import org.hibernate.boot.spi.BootstrapContext;
|
35 | 35 | import org.hibernate.boot.spi.MetadataImplementor;
|
36 | 36 | import org.hibernate.cfg.AvailableSettings;
|
| 37 | +import org.hibernate.community.dialect.InformixDialect; |
37 | 38 | import org.hibernate.dialect.Dialect;
|
38 | 39 | import org.hibernate.dialect.SQLServerDialect;
|
39 | 40 | import org.hibernate.dialect.SybaseDialect;
|
@@ -309,12 +310,17 @@ public void createSchema_fromSessionFactory() {
|
309 | 310 |
|
310 | 311 | @Test
|
311 | 312 | @SkipForDialect(value = SQLServerDialect.class,
|
312 |
| - comment = "SQL Server and Sybase support catalogs but their implementation of DatabaseMetaData" |
| 313 | + comment = "SQL Server support catalogs but their implementation of DatabaseMetaData" |
313 | 314 | + " throws exceptions when calling getSchemas/getTables with a non-existing catalog,"
|
314 | 315 | + " which results in nasty errors when generating an update script"
|
315 | 316 | + " and some catalogs don't exist.")
|
316 | 317 | @SkipForDialect(value = SybaseDialect.class,
|
317 |
| - comment = "SQL Server and Sybase support catalogs but their implementation of DatabaseMetaData" |
| 318 | + comment = "Sybase support catalogs but their implementation of DatabaseMetaData" |
| 319 | + + " throws exceptions when calling getSchemas/getTables with a non-existing catalog," |
| 320 | + + " which results in nasty errors when generating an update script" |
| 321 | + + " and some catalogs don't exist.") |
| 322 | + @SkipForDialect(value = InformixDialect.class, |
| 323 | + comment = "Informix support catalogs but their implementation of DatabaseMetaData" |
318 | 324 | + " throws exceptions when calling getSchemas/getTables with a non-existing catalog,"
|
319 | 325 | + " which results in nasty errors when generating an update script"
|
320 | 326 | + " and some catalogs don't exist.")
|
@@ -772,8 +778,8 @@ String patternStringForNameWithDifferentQualifier(String patternStringForName) {
|
772 | 778 | }
|
773 | 779 |
|
774 | 780 | private String patternStringForQualifier() {
|
775 |
| - return ( catalog != null ? Pattern.quote( catalog + "." ) : "" ) |
776 |
| - + ( schema != null ? Pattern.quote( schema + "." ) : "" ); |
| 781 | + return ( catalog != null ? Pattern.quote( catalog ) + "." : "" ) |
| 782 | + + ( schema != null ? Pattern.quote( schema ) + "." : "" ); |
777 | 783 | }
|
778 | 784 | }
|
779 | 785 |
|
|
0 commit comments