I have completed work. Patch was sent on nhibernate-development (at) lists (dot) sourceforge.net
On 5 мар, 17:28, Fabio Maulo <[email protected]> wrote: > MySQL don't has a specific metadata provider implemented.The work to create > one is not so complicated; Take a look to src\NHibernate\Dialect\Schema and > please send us a patch for your preferred RDBMS (MySQL). > > Thanks. > > 2009/3/5 DK-Warder <[email protected]> > > > > > > > I have got exception on SchemaUpdate with MySQL 5.1.31: > > > System.InvalidCastException: Specified cast is not valid. > > at NHibernate.Tool.hbm2ddl.ColumnMetadata..ctor(DataRow rs) > > at NHibernate.Tool.hbm2ddl.TableMetadata.AddColumn(DataRow rs) > > at NHibernate.Tool.hbm2ddl.TableMetadata.InitColumns(ISchemaReader > > meta) > > at NHibernate.Tool.hbm2ddl.TableMetadata..ctor(DataRow rs, > > ISchemaReader meta, Boolean extras) > > at NHibernate.Tool.hbm2ddl.DatabaseMetadata.GetTableMetadata(String > > name, String schema) > > at NHibernate.Cfg.Configuration.GenerateSchemaUpdateScript(Dialect > > dialect, DatabaseMetadata databaseMetadata) > > at NHibernate.Tool.hbm2ddl.SchemaUpdate.Execute(Boolean script, > > Boolean doUpdate) > > > My config: > > <property > > name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</ > > property> > > <property name="dialect">NHibernate.Dialect.MySQL5Dialect</property> > > > SchemaExport works fine. > > -- > Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
