1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00
Files
mariadb/mysql-test/t
unknown 6eced1b857 Fix for bug #29131: SHOW VARIABLES reports variable 'log' but SET
doesn't recognize it

This is a 5.0 version of the patch, it will be null-merged to 5.1

Problem:

'log' and 'log_slow_queries' were "fixed" variables, i.e. they showed up
in SHOW VARIABLES, but could not be used in expressions like 
"select @@log". Also, using them in the SET statement produced an 
incorrect "unknown system variable" error.

Solution:

Make 'log' and 'log_slow_queries' read-only dynamic variables to make 
them available for use in expressions, and produce a correct error 
about the variable being read-only when used in the SET statement.


mysql-test/r/variables.result:
  Added a test case for bug #29131.
mysql-test/t/variables.test:
  Added a test case for bug #29131.
sql/mysql_priv.h:
  Changed the type of opt_log and opt_slow_log to my_bool to 
  align with the interfaces in set_var.cc
sql/mysqld.cc:
  Changed the type of opt_log and opt_slow_log to my_bool to 
  align with the interfaces in set_var.cc
sql/set_var.cc:
  Made 'log' and 'log_slow_queries' to be read-only dynamic system 
  variable, i.e. available for use in expressions with the @@var syntax.
sql/set_var.h:
  Added a new system variable class representing a read-only boolean
  variable.
2007-10-25 14:02:27 +04:00
..
2007-08-29 12:44:43 +02:00
2007-05-17 19:38:34 +03:00
2007-07-30 21:05:56 +05:00
2007-06-07 20:25:22 +02:00
2007-08-07 05:35:20 -04:00
2007-09-11 02:41:42 +04:00
2007-04-10 16:55:48 +03:00
2007-07-23 23:35:43 -07:00
2007-06-28 16:03:01 -07:00
2007-06-28 16:03:01 -07:00
2007-07-06 11:35:10 -07:00
2007-07-06 11:35:10 -07:00
2007-05-16 09:51:05 +04:00
2007-07-11 18:45:35 -07:00
2007-06-21 21:39:52 -04:00
2007-06-20 14:21:48 +05:00
2007-08-31 16:59:07 +05:00
2007-08-31 16:59:07 +05:00
2007-08-13 15:46:11 +02:00
2007-06-17 22:04:01 +02:00
2007-06-01 17:49:01 +04:00
2007-08-29 12:47:00 +02:00
2007-06-01 17:49:01 +04:00
2007-06-21 16:55:52 +02:00
2007-06-01 18:04:25 +04:00
2007-06-22 09:28:38 +05:00
2007-05-24 15:35:43 +05:00
2007-05-31 17:30:56 +05:00
2007-09-15 07:04:32 +02:00
2007-09-12 23:41:35 +05:00
2007-06-06 18:55:21 +05:00
2007-04-17 12:32:01 +02:00
2007-07-22 18:26:16 -07:00
2007-07-15 21:51:36 +04:00
2007-06-03 14:46:09 +04:00
2007-04-23 17:15:51 +03:00