[fluent-nhib] Re: Fluent NHibernate quotes all fields?

2010-01-29 Thread Chris C
Should quoting fields like this be the responsibility of Fluent NHibernate? What about using hbm2ddl.keywords and SchemaMetadataUpdater as demonstrated in http://fabiomaulo.blogspot.com/2009/06/auto-quote-tablecolumn-names.html ? With an opt-in/out option for its use as part of the fluent configur

Re: [fluent-nhib] Re: Fluent NHibernate quotes all fields?

2010-01-28 Thread David R. Longnecker
Oh, I should read my email... damn gmail filters. I wouldn't have twit-tormented James about this earlier. ;) Anyway, I've updated the XmlColumnWriter in my fork and things are dandy. "`" + name + "`" == evil. I can see value in being able to auto-quote, but I'm not sure how to get at it. Someon

Re: [fluent-nhib] Re: Fluent NHibernate quotes all fields?

2010-01-28 Thread James Gregory
Yeah, I was thinking of something similar. I think for the time being I'll just undo the offending change until we can come up with a less harmful change. On Thu, Jan 28, 2010 at 7:16 PM, Pci wrote: > Yeah, this quoting thing it's an issue too when using things like > Formulas and/or Checks.. >

[fluent-nhib] Re: Fluent NHibernate quotes all fields?

2010-01-28 Thread Pci
Yeah, this quoting thing it's an issue too when using things like Formulas and/or Checks.. Specially on PostgreSQL which is case sensitive when using quotes, but insensitive when not. This forces us to quote every identifier on each formular definition, but then NH get's confused and makes weird t