SPRNET-1398 - Command timeout can't be set to infinite value

This commit is contained in:
markpollack
2010-12-08 17:57:35 +00:00
parent e834948f8c
commit 26fa62afdb

View File

@@ -233,9 +233,9 @@ namespace Spring.Data.Support
// 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;
}