-
Notifications
You must be signed in to change notification settings - Fork 4
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
Failure when executing SQL string #7
Comments
Hey mate, I didn't get a chance to look at this over the weekend - was busy repaving my machine. Will try and look sometime this week. |
Hi Rob, thanks for heads up. |
Hey, I've started taking a look at this. I've got a WIP pull request up with failing tests - I can confirm this is a problem. Off the top of my head I don't know why it's not using the reliable connection - it seems to be bypassing the proxy code somehow. This stuff is super, super complex and it's been quite a while since I've had my head into it so to be honest it might take me a while to figure it out. cc @MattDavies |
The reason for this code failing was that the "ReliableConnection" of the Command was not being set in the constructor when the ReliableSqlDbComand was being constructed with a command that already has an associated Connection. To overcome this issue i have added a second constructor that take as SQLCommand and a ReliableSqlDbConnection (Which is just the wrapped version of the existing commands connection.
|
Awesome! Thanks for finding the problem :) I'll take a look over the next week and get the code in! |
@hcusto this problem should be fixed in the next version of ReliableDbProvider. I'll let you know when it's released. |
I'm trying to use ReliableDbProvider with EF 5. and I'm unable to execute hand written sql query. Here is failing test
here is part that breaks Test
Error is inside ReliableSqlCommand
The text was updated successfully, but these errors were encountered: