开发者

ADO.NET MySqlCommand CommandTimeout

开发者 https://www.devze.com 2023-03-28 06:15 出处:网络
I am trying to understand MyS开发者_运维问答qlCommand CommandTimeout. If it is zero, does it mean \"indefinite\" ?According to the official documentation, it does seem that 0 means indefinite.

I am trying to understand MyS开发者_运维问答qlCommand CommandTimeout . If it is zero , does it mean "indefinite" ?


According to the official documentation, it does seem that 0 means indefinite.

The default value is 30 secs. A value of 0 indicates an indefinite wait and should be avoided. Note the default command timeout can be changed using the connection string option Default Command Timeout.

(emphasis mine)

However, this post from October 2006 seems to indicates otherwise. Most likely the implementation has been modified since that post was made to match the official documentation. The best thing to do is give it a try and see what happens :)

0

精彩评论

暂无评论...
验证码 换一张
取 消