Hmm, I keep getting that error on all of my configurations using the
MySQL driver base and setting "hbm2ddl.keywords" to "none" seems to
fix it.  Maybe give that a shot.

--
David R. Longnecker
blog: http://blog.tiredstudent.com
twitter: dlongnecker

"Good design is a Renaissance attitude that combines technology,
cognitive science, human need, and beauty to produce something." -
Paola Antonelli



On Fri, Aug 28, 2009 at 10:59 AM, Colin Bowern<[email protected]> wrote:
>
> I've made it part way there but I am hitting "ArgumentException:
> Column 'ReservedWord' does not belong to table ReservedWords."
>
> System.Data.DataRow.GetDataColumn(String columnName)
> System.Data.DataRow.get_Item(String columnName)
> NHibernate.Dialect.Schema.AbstractDataBaseSchema.GetReservedWords()
> NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect
> dialect, IConnectionHelper connectionHelper)
> NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
> sessionFactory)
> NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
> mapping, Settings settings, EventListeners listeners)
> NHibernate.Cfg.Configuration.BuildSessionFactory()
> FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() in c:
> \Documents and Settings\Administrator\dev\fluent-nhibernate\src
> \FluentNHibernate\Cfg\FluentConfiguration.cs: line 93
> FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() in c:
> \Documents and Settings\Administrator\dev\fluent-nhibernate\src
> \FluentNHibernate\Cfg\FluentConfiguration.cs: line 98
>
> There was a suggestion in the nhusers thread (http://groups.google.com/
> group/nhusers/browse_thread/thread/87811677a167c3c9) that you could
> set hbm2ddl.keywords to auto-quote but that doesn't seem to make a
> difference.  My classes are as follows:
>
>    public class DevartOracleClientDriver :
> NHibernate.Driver.ReflectionBasedDriver,
> IEmbeddedBatcherFactoryProvider
>    {
>        private static readonly SqlType GuidSqlType = new SqlType
> (DbType.Binary, 0x10);
>
>        public override string NamedPrefix
>        {
>            get { return ":"; }
>        }
>
>        Type IEmbeddedBatcherFactoryProvider.BatcherFactoryClass
>        {
>            get { return typeof
> (OracleDataClientBatchingBatcherFactory); }
>        }
>
>        public override bool UseNamedPrefixInParameter
>        {
>            get { return true; }
>        }
>
>        public override bool UseNamedPrefixInSql
>        {
>            get { return true; }
>        }
>
>        public DevartOracleClientDriver()
>            : base("Devart.Data.Oracle",
> "Devart.Data.Oracle.OracleConnection",
> "Devart.Data.Oracle.OracleCommand") { }
>
>        protected override void InitializeParameter(IDbDataParameter
> dbParam, string name, SqlType sqlType)
>        {
>            DbType dbType = sqlType.DbType;
>            if (dbType == DbType.Boolean)
>            {
>                base.InitializeParameter(dbParam, name,
> SqlTypeFactory.Int16);
>            }
>            else if (dbType == DbType.Guid)
>            {
>                base.InitializeParameter(dbParam, name, GuidSqlType);
>            }
>            else
>            {
>                base.InitializeParameter(dbParam, name, sqlType);
>            }
>        }
>    }
>
>    public class DevartOracleConfiguration :
> PersistenceConfiguration<DevartOracleConfiguration,
> OracleConnectionStringBuilder>
>    {
>        public static DevartOracleConfiguration Oracle10
>        {
>            get { return new DevartOracleConfiguration
> ().Dialect<Oracle10gDialect>(); }
>        }
>
>        protected DevartOracleConfiguration()
>        {
>            base.Driver<DevartOracleClientDriver>();
>        }
>    }
>
> On Aug 28, 11:46 am, James Gregory <[email protected]> wrote:
>> If one doesn't already exist you'll need to create one. Maybe one of the
>> oracle guys could offer a better answer.
>>
>>
>>
>> On Fri, Aug 28, 2009 at 4:27 PM, Colin Bowern <[email protected]> wrote:
>>
>> > How would I use dotConnect for Oracle in place of the
>> > Oracle.DataAccess provider?  My first guess is to create our own
>> > driver class based on ReflectionBasedDriver.- Hide quoted text -
>>
>> - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to