Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0.GA
    • Fix Version/s: 3.3.0.CR1
    • Component/s: Toolset
    • Labels:
      None
    • Sprint:

      Description

      Schema validation fails on ODBC with the following stack trace. This should be covered by existing test SchemaValidateFixture.ShouldVerifySameTable(), but the test was flawed until very recently.

      System.ArgumentException : More restrictions were provided than the requested schema ('Tables') supports.
      at System.Data.Odbc.OdbcMetaDataFactory.FillOutRestrictions(Int32 restrictionsCount, String[] restrictions, Object[] allRestrictions, String collectionName)
      at System.Data.Odbc.OdbcMetaDataFactory.GetTablesCollection(String[] restrictions, OdbcConnection connection, Boolean isTables)
      at System.Data.Odbc.OdbcMetaDataFactory.PrepareCollection(String collectionName, String[] restrictions, DbConnection connection)
      at System.Data.ProviderBase.DbMetaDataFactory.GetSchema(DbConnection connection, String collectionName, String[] restrictions)
      at System.Data.ProviderBase.DbConnectionInternal.GetSchema(DbConnectionFactory factory, DbConnectionPoolGroup poolGroup, DbConnection outerConnection, String collectionName, String[] restrictions)
      at System.Data.Odbc.OdbcConnection.GetSchema(String collectionName, String[] restrictionValues)
      at NHibernate.Dialect.Schema.AbstractDataBaseSchema.GetTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) in d:\BuildAgent-03\work\642d14aa2ecb6f73\src\NHibernate\Dialect\Schema\AbstractDataBaseSchema.cs:line 59
      at NHibernate.Tool.hbm2ddl.DatabaseMetadata.GetTableMetadata(String name, String schema, String catalog, Boolean isQuoted) in d:\BuildAgent-03\work\642d14aa2ecb6f73\src\NHibernate\Tool\hbm2ddl\DatabaseMetadata.cs:line 75
      at NHibernate.Cfg.Configuration.ValidateSchema(Dialect dialect, DatabaseMetadata databaseMetadata) in d:\BuildAgent-03\work\642d14aa2ecb6f73\src\NHibernate\Cfg\Configuration.cs:line 2411
      at NHibernate.Tool.hbm2ddl.SchemaValidator.Validate() in d:\BuildAgent-03\work\642d14aa2ecb6f73\src\NHibernate\Tool\hbm2ddl\SchemaValidator.cs:line 115
      at NHibernate.Test.Tools.hbm2ddl.SchemaValidator.SchemaValidateFixture.ShouldVerifySameTable() in d:\BuildAgent-03\work\642d14aa2ecb6f73\src\NHibernate.Test\Tools\hbm2ddl\SchemaValidator\SchemaValidateFixture.cs:line 20

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oskar.berggren Oskar Berggren
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Who's Looking?