List:Commits« Previous MessageNext Message »
From:Alexander Barkov Date:May 18 2011 8:01pm
Subject:bzr commit into mysql-trunk branch (alexander.barkov:3365) WL#946
View as plain text  
#At file:///home/bar/mysql-bzr/mysql-trunk-wl946/ based on revid:alexander.barkov@stripped

 3365 Alexander Barkov	2011-05-18
      WL#946: fixing some test failures.
      As the datatype of @@timestamp has changed
      from Sys_var_session_special (ulonglong based)
      to Sys_var_session_special_double (double bases),
      it's not any more correct to use "~(time_t)0" as the upper
      limit parameter to constructor.

    modified:
      sql/sys_vars.cc
=== modified file 'sql/sys_vars.cc'
--- a/sql/sys_vars.cc	2011-05-18 17:21:03 +0000
+++ b/sql/sys_vars.cc	2011-05-18 19:59:19 +0000
@@ -2730,7 +2730,7 @@ static bool check_timestamp(sys_var *sel
 static Sys_var_session_special_double Sys_timestamp(
        "timestamp", "Set the time for this client",
        sys_var::ONLY_SESSION, NO_CMD_LINE,
-       VALID_RANGE(0, ~(time_t)0), BLOCK_SIZE(1),
+       VALID_RANGE(0, TIMESTAMP_MAX_VALUE + 1), BLOCK_SIZE(1),
        NO_MUTEX_GUARD, IN_BINLOG, ON_CHECK(check_timestamp), 
        ON_UPDATE(update_timestamp), ON_READ(read_timestamp));
 


Attachment: [text/bzr-bundle] bzr/alexander.barkov@oracle.com-20110518195919-o1m59v3z2b7h7poh.bundle
Thread
bzr commit into mysql-trunk branch (alexander.barkov:3365) WL#946Alexander Barkov19 May