Why should the fix from stackoverflow remove any behaviour? It overrides
OracleDataClientDriver, so the NHibernate code you posted is still executed.
As far as I can say this is a perfect solution. At least if you only use
DATE columns, I don't know how it would affect queries on TIMESTAMP columns.
On Friday, August 31, 2012 8:37:52 AM UTC+2, Stig Christensen wrote:
>
> The fix on stackoverflow removes the default behavior, which is not
> recommended. This is the from the NHibernate source.
>
> /// <remarks>
> /// This adds logic to ensure that a DbType.Boolean
> parameter is not
> created since
> /// ODP.NET doesn't support it.
> /// </remarks>
> protected override void
> InitializeParameter(IDbDataParameter
> dbParam, string name, SqlType sqlType)
> {
> // if the parameter coming in contains a boolean
> then we need to
> convert it
> // to another type since ODP.NET doesn't support
> DbType.Boolean
> switch (sqlType.DbType)
> {
> case DbType.Boolean:
> base.InitializeParameter(dbParam,
> name, SqlTypeFactory.Int16);
> break;
> case DbType.Guid:
> base.InitializeParameter(dbParam,
> name, GuidSqlType);
> break;
> default:
> base.InitializeParameter(dbParam,
> name, sqlType);
> break;
> }
> }
>
>
>
> On 30 Aug., 14:45, Dries Verbeke <[email protected]> wrote:
> > Check out this post<
> http://stackoverflow.com/questions/7684163/problems-with-nhibernate-a...>for
> the answer
> >
> >
> >
> >
> >
> >
> >
> > On Friday, August 17, 2012 5:15:54 AM UTC+2, Milind wrote:
> >
> > > did you found the solution as I have similar issue.
> >
> > > please let me know
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/sfoxA2NueoYJ.
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.