Skip to content

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented Jun 9, 2018

Was throwing:

System.ArgumentException : Dialect does not support DbType.Binary
Parameter name: typecode
   at NHibernate.Dialect.TypeNames.Get(DbType typecode)
   at NHibernate.Dialect.Dialect.GetTypeName(SqlType sqlType)
   at NHibernate.Mapping.Column.GetDialectTypeName(Dialect dialect, IMapping mapping)
   at NHibernate.Mapping.Column.GetSqlType(Dialect dialect, IMapping mapping)
   at NHibernate.Mapping.Table.SqlCreateString(Dialect dialect, IMapping p, String defaultCatalog, String defaultSchema)
   at NHibernate.Cfg.Configuration.GenerateSchemaCreationScript(Dialect dialect)
   at NHibernate.Tool.hbm2ddl.SchemaExport.Initialize()
   at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction, Boolean execute, Boolean justDrop, TextWriter exportOutput)
   at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction, Boolean execute, Boolean justDrop)
   at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean useStdOut, Boolean execute, Boolean justDrop)
   at NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean useStdOut, Boolean execute)

@hazzik
Copy link
Member Author

hazzik commented Jun 9, 2018

@fredericDelaporte 5.1.3 or 5.2?

@hazzik hazzik changed the title Fix DbType.Binary registration in DB2 Fix DbType.Binary registration in DB2Dialect Jun 9, 2018
@hazzik hazzik removed this from the 5.2 milestone Jun 9, 2018
@fredericDelaporte
Copy link
Member

As you wish.

@hazzik hazzik changed the base branch from master to 5.1.x June 10, 2018 05:28
@hazzik hazzik added this to the 5.1.3 milestone Jun 10, 2018
@hazzik hazzik merged commit 059cabf into nhibernate:5.1.x Jun 10, 2018
@hazzik hazzik deleted the db2 branch June 10, 2018 05:34
hazzik added a commit to fredericDelaporte/nhibernate-core that referenced this pull request Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants