1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/sql
unknown 2b720487f0 Fix for bug #22077 "DROP TEMPORARY TABLE fails with wrong error if read_only is set"
Do not issue a 'read-only' error in case of DROP TEMPORARY TABLE on a non-existing temporary table.
Instead produce the correct "Unknown table" error or warning (in cases when the IF EXISTS clause was specified).

To a documentor: the part of the manual describing the 'read_only' system variable should be clarified to state the following:
"When the read_only variable is set to ON, all operations which create/update/drop tables are rejected with the exceptions for:
1. Any operation performed by the replication thread on a slave server
2. Any operation performed by a user that have the SUPER privilege
3. Any operation that creates/updates/drops only temporary tables"


mysql-test/r/read_only.result:
  Added testcases for bug #22077 "DROP TEMPORARY TABLE fails with wrong error if read_only is set"
mysql-test/t/read_only.test:
  Added testcases for bug #22077 "DROP TEMPORARY TABLE fails with wrong error if read_only is set"
sql/sql_parse.cc:
  Before issuing the 'read-only' error also check if the operation is not a DROP TEMPORARY TABLE statement
2006-11-20 17:35:23 +03:00
..
2005-09-30 14:03:55 +02:00
2006-08-30 13:20:39 -07:00
2005-11-03 22:42:25 +02:00
2006-08-30 13:20:39 -07:00
2006-10-20 12:34:31 -06:00
2006-04-13 17:22:56 +09:30
2006-09-12 18:25:35 +05:00
2006-10-08 22:34:32 +05:00
2006-05-30 17:10:53 -07:00
2005-08-12 13:54:42 +03:00
2006-09-29 07:43:25 -07:00
2006-10-03 20:28:59 +02:00
2006-09-01 10:32:12 +02:00
2006-10-30 13:35:57 +01:00
2006-07-08 04:07:43 +04:00
2006-09-27 19:21:29 +05:00
2006-06-27 00:47:52 +04:00
2006-08-21 16:21:48 +04:00
2005-08-12 17:57:19 +03:00
2006-10-18 00:14:14 +04:00
2006-09-27 19:21:29 +05:00
2006-05-03 21:35:27 -07:00
2006-06-14 23:54:08 +04:00
2006-06-27 00:47:52 +04:00
2006-10-12 13:50:22 +05:00