Skip to content

Commit

Permalink
SPRNET-1398 - Command timeout can't be set to infinite value
Browse files Browse the repository at this point in the history
  • Loading branch information
markpollack committed Dec 8, 2010
1 parent e834948 commit 26fa62a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Spring/Spring.Data/Data/Support/ConnectionUtils.cs
Expand Up @@ -233,9 +233,9 @@ public static void ApplyTransactionTimeout(IDbCommand command, IDbProvider dbPro
// Remaining transaction timeout overrides specified value.
command.CommandTimeout = conHolder.TimeToLiveInSeconds;
}
else if (timeout > 0)
else if (timeout >= 0)
{
// No current transaction timeout -> apply specified value.
// No current transaction timeout -> apply specified value. 0 = infinite timeout in some drivers.
command.CommandTimeout = timeout;
}

Expand Down

0 comments on commit 26fa62a

Please sign in to comment.