If TypeNames.Get(...., size, ...) can't find a large enough type registered
by the dialect, it will return the default type. At least for strings, this
is typically to be a rather small type, and certainly smaller than what is
actually possible.

Seems like it would be more useful to return the largest known type
instead. Or even raise an error to force the developer to make a usable
choice in the mapping.

For example, on MSSQL this has the weird effect of:
  a) mapped length = Int32.MaxValue/2 => nvarchar(max)
but
  b) mapped length = Int32.MaxValue/2 +1 => nvarchar(255)


https://nhibernate.jira.com/browse/NH-2818

/Oskar

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to