Skip to content
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

Subsonic 3 CommandTimeout not being set #257

Open
lski opened this issue Mar 14, 2011 · 2 comments
Open

Subsonic 3 CommandTimeout not being set #257

lski opened this issue Mar 14, 2011 · 2 comments

Comments

@lski
Copy link

lski commented Mar 14, 2011

Hi,

Im not sure I think I might have found a bug with the CommandTimeout of QueryCommand in SubSonic 3 where the CommandTimeout can not be overriden.

Usage:

var sp = db.SpMyStoredProcedure();
sp.Command.CommandTimeout = 120;
sp.Execute();

However the stepping through the code I noticed the CommandTimeout of the DbCommand object that is created in the DbDataProvider in the following Methods is never set to the value within the QueryCommand.

ExecuteReader(QueryCommand qry)
ExecuteDataSet(QueryCommand qry)
ExecuteScalar(QueryCommand qry)
ExecuteQuery(QueryCommand qry)

A possible fix to this would be the inclusion of:

cmd.CommandTimeout = qry.CommandTimeout;

Within each of the methods in the DbDataProvider.cs file, this fix has worked for me.

Thanks,
Lee Cooper

@spatelengg
Copy link

Hi,

I am also having the same issue.
Waiting for the update....

Thanks,
Sunil Patel

@lski
Copy link
Author

lski commented May 19, 2011

Hi,

As a short term solution I downloaded the source code and fixed this issue and another issue I was having and created my own DLL in the meantime. This has got me by while I'm waiting for the fix to be implemented

Lee

nathanb added a commit to nathanb/SubSonic-3.0 that referenced this issue Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants