-
Notifications
You must be signed in to change notification settings - Fork 933
NH-4015 - Update Npgsql driver and enable DTC for it #630
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace NHibernate.Test.TestDialects | ||
namespace NHibernate.Test.TestDialects | ||
{ | ||
public class PostgreSQL83TestDialect : TestDialect | ||
{ | ||
|
@@ -21,13 +16,5 @@ public override bool SupportsNullCharactersInUtfStrings | |
{ | ||
get { return false; } | ||
} | ||
|
||
/// <summary> | ||
/// Npgsql's DTC code seems to be somewhat broken as of 2.0.11. | ||
/// </summary> | ||
public override bool SupportsDistributedTransactions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to check when DTC become available in Postgres. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But, it is available since long. Tests succeed. It was failing previously not because Postgres was not supporting it, but because we were not at all enlisting Postgres connection into scopes: enlist is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, sorry, I did not see that this is a dialect's test-double. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks good then |
||
{ | ||
get { return false; } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
using System; | ||
using System.Data; | ||
using System.Data.Common; | ||
using System.Linq; | ||
|
||
namespace NHibernate.Driver | ||
{ | ||
|
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.
I intend to put a better "dodge" logic in #627. It will apply only to database drivers showcasing the "latency" trouble.