Skip to content

Conversation

iruis
Copy link

@iruis iruis commented Jun 3, 2024

excepted nhibernate schema update on mariadb 11

NHibernate.Tool.hbm2ddl.SchemaUpdate: 16:14:56,465 ERROR SchemaUpdate:0 - could not complete schema update
System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.UInt32'.
   at MySql.Data.MySqlClient.SchemaProvider.GetIndexesAsync(String[] restrictions, Boolean execAsync, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.SchemaProvider.GetSchemaInternalAsync(String collection, String[] restrictions, Boolean execAsync, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.ISSchemaProvider.GetSchemaInternalAsync(String collection, String[] restrictions, Boolean execAsync, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.SchemaProvider.GetSchemaAsync(String collection, String[] restrictions, Boolean execAsync, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.MySqlConnection.GetSchemaAsync(Boolean execAsync, String collectionName, String[] restrictionValues, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.MySqlConnection.GetSchema(String collectionName, String[] restrictionValues)
   at NHibernate.Dialect.Schema.AbstractDataBaseSchema.GetIndexInfo(String catalog, String schemaPattern, String tableName)
   at NHibernate.Dialect.Schema.AbstractTableMetadata.InitIndexes(IDataBaseSchema meta)
   at NHibernate.Dialect.Schema.AbstractTableMetadata..ctor(DataRow rs, IDataBaseSchema meta, Boolean extras)
   at NHibernate.Dialect.Schema.MySQLTableMetadata..ctor(DataRow rs, IDataBaseSchema meta, Boolean extras)
   at NHibernate.Dialect.Schema.MySQLDataBaseSchema.GetTableMetadata(DataRow rs, Boolean extras)
   at NHibernate.Tool.hbm2ddl.DatabaseMetadata.GetTableMetadata(String name, String schema, String catalog, Boolean isQuoted)
   at NHibernate.Cfg.Configuration.GenerateSchemaUpdateScript(Dialect dialect, IDatabaseMetadata databaseMetadata)
   at NHibernate.Tool.hbm2ddl.SchemaUpdate.Execute(Action`1 scriptAction, Boolean doUpdate)

@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@mysql-oca-bot
Copy link

Hi, there was no response to our request to sign an OCA or confirm the code is submitted under the terms of the OCA. As such this request will be closed.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants