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