-
Notifications
You must be signed in to change notification settings - Fork 934
NH-4023 - Passing session to type getter and setter #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ODBC driver also requires TimeSpan |
On Hibernate side |
I have seen that Hibernate was not shy about passing that around, enforcing my decision for I am ok with changing it too. Sure breaking change, but not doing it would be worst I think. |
Thanks. Should I update the tests result files by the way, for avoiding hiding those newly fixed cases? But it may enable some flaky test, if they have succeeded in the run from which I would take a new result file. |
I think the goal shall be to have no red tests at all. So, we either need to fix them, or ignore them. |
@@ -63,9 +63,9 @@ public System.Type ReturnedType | |||
get { return typeof(Int32); } | |||
} | |||
|
|||
public object NullSafeGet(DbDataReader rs, string[] names, object owner) | |||
public object NullSafeGet(DbDataReader rs, string[] names, ISessionImplementor session, object owner) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
NH-4023 for solving time issues for some databases.
NH-1851 MySql
NH-3078 Sybase Anywhere
NH-4017 Npgsql 3
NH-4024 ODBC
Maybe a replacement for #635 and #631.
But has a heavy impact on types, which may hinders UserType as shown in test project: it seems frequent to delegate the set/get of an user type to a NHibernate type. But with that change, that will require the session.
And the user type will not have it.