Bug #55701 | lockAge in MySql.Web.SessionState.MySqlSessionStateStore | ||
---|---|---|---|
Submitted: | 3 Aug 2010 5:44 | Modified: | 12 Aug 2010 15:19 |
Reporter: | Whikiey Yan | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 6.3.3 beta | OS: | Windows (Server 2008 R2) |
Assigned to: | Vladislav Vaintroub | CPU Architecture: | Any |
[3 Aug 2010 5:44]
Whikiey Yan
[3 Aug 2010 16:29]
Vladislav Vaintroub
@Whikiey, thanks for reporting, we should check it. Can you perhaps clarify what you said in "How to repeat section": TIME_TO_SEC returns NULL if ... (and then you lost me, the condition seems to be to complicated) Thanks!
[3 Aug 2010 21:22]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/114968 838 Vladislav Vaintroub 2010-08-03 Bug #55701: fix calculation of lockAge in SessionProvider . Do not use datimetime arithmetic in SQL, because it is either - buggy (like TIME_TO_SEC(d1 - d2) returns NULL sometimes) or - works only for restricted ranges TIME_TO_SEC(TIMEDIFF(d1, d2) would throw a warning if d1 and d2 have more than 800+ hours difference or - non-portable TIMESTAMPDIFF() works only with version 5.0 and later Instead, do datetime calculations entirely in .NET
[3 Aug 2010 21:28]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/114970 886 Vladislav Vaintroub 2010-08-03 [merge] merge bug#55701
[3 Aug 2010 21:58]
Vladislav Vaintroub
fixed in 6.1.5, 6.2.4, 6.3.4
[12 Aug 2010 15:20]
Tony Bedford
An entry has been added to the 6.1.5, 6.2.4, and 6.3.4 changelogs: The calculation of lockAge in the Session Provider sometimes generated a System.Data.SqlTypes.SqlNullValueException.