1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/sql
unknown 5389cc169a bug #16813 (WITH CHECK OPTION fails with UPDATE)
We use the condition from CHECK OPTION twice handling UPDATE command.
First we construnct 'update_cond' AND 'option_cond'
condition to select records to be updated, then we check the
'option_cond' for the updated row.
The problem is that first 'AND' condition is optimized during the 'select'
which can break 'option_cond' structure, so it will be unusable for
the sectond use - to check the updated row.
Possible soultion is either use copy of the condition in the first
use or to make optimization less traumatic for the operands.
I picked the first one. 


mysql-test/r/view.result:
  result fixed
mysql-test/t/view.test:
  testcase
sql/table.cc:
  now we use the copy of the CHECK OPTION condition to construct
  the select's condition
2006-09-29 12:16:07 +05:00
..
2005-09-30 14:03:55 +02:00
2006-08-15 01:54:14 -07:00
2005-11-03 22:42:25 +02:00
2006-03-30 17:14:55 +04:00
2006-08-18 14:16:11 +02:00
2006-04-13 17:22:56 +09:30
2006-05-30 17:10:53 -07:00
2006-07-21 10:14:25 -07:00
2006-09-18 12:14:27 +02:00
2006-08-24 20:56:28 +04:00
2006-06-17 02:11:12 +04:00
2006-04-04 17:54:58 -07:00
2006-09-13 19:32:21 +04:00
2006-09-01 10:32:12 +02:00
2006-09-01 10:32:12 +02:00
2006-09-18 12:14:27 +02:00
2006-09-18 12:14:27 +02:00
2006-07-08 04:07:43 +04:00
2006-08-23 15:46:57 -06:00
2006-09-08 16:16:39 +05:00
2006-09-07 18:09:49 +05:00
2006-09-07 18:09:49 +05:00
2006-06-27 00:47:52 +04:00
2006-09-07 18:09:49 +05:00
2006-09-13 19:32:21 +04:00
2006-08-21 16:21:48 +04:00
2006-09-07 18:09:49 +05:00
2006-05-03 21:35:27 -07:00
2006-04-21 08:19:38 -07:00
2006-06-14 23:54:08 +04:00
2006-06-27 00:47:52 +04:00