Bug #50130 | --sysdate-is-now sets no system variable | ||
---|---|---|---|
Submitted: | 7 Jan 2010 9:24 | Modified: | 7 Jan 2010 10:10 |
Reporter: | Jon Stephens | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
Version: | 5.0+ | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | server options, SYSDATE(), system variables |
[7 Jan 2010 9:24]
Jon Stephens
[24 Feb 2010 20:25]
Sheeri Cabral
This is still an issue in MySQL 5.1.36: mysql> show global variables like 'sysdate%'; Empty set (0.00 sec) mysql> show global status like 'sysdate%'; Empty set (0.00 sec)
[24 Feb 2010 20:28]
Sheeri Cabral
Note that this is a general problem with most/all server options, as shown in: http://dev.mysql.com/doc/refman/5.0/en/server-options.html
[16 May 2019 7:48]
MySQL Verification Team
[Workaround] Easy way to check this as belows. mysql> select sysdate(),sleep(3),sysdate() into @a,@b,@c;select 'sysdate-is-now' as Variable_name, case when @a=@c then 'ON' else 'OFF' end as Value; Query OK, 1 row affected (3.01 sec) +----------------+-------+ | Variable_name | Value | +----------------+-------+ | sysdate-is-now | OFF | +----------------+-------+ 1 row in set (0.00 sec)