tiancaiamao
12a62e86b1
*: Fix select lock option for union statement ( #6579 )
...
If for update appears after order by or limit in union, then it is ignored.
If there is no order by or limit, it affects only the near select statement.
This locks both statements.
```
select * from t for update union select * from s for update;
```
This is syntax error:
```
(select * from t) union all (select * from s) for update;
```
2018-06-06 22:17:09 +08:00
..
2018-05-29 21:19:14 +08:00
2018-06-04 14:14:04 +08:00
2018-05-26 20:39:22 +08:00
2018-05-24 18:28:32 +08:00
2018-04-03 20:00:30 +08:00
2018-05-05 22:36:54 +08:00
2018-06-05 13:23:52 +08:00
2018-05-05 22:36:54 +08:00
2018-05-29 00:31:16 +08:00
2018-05-18 13:13:09 +08:00
2018-04-12 21:56:27 +08:00
2018-06-01 10:22:02 +08:00
2018-04-24 23:36:12 +08:00
2018-05-26 20:39:22 +08:00
2018-04-25 13:13:04 +08:00
2018-06-06 22:17:09 +08:00
2018-06-05 14:16:30 +08:00
2018-04-03 20:00:30 +08:00
2018-03-31 17:06:19 +08:00
2018-04-03 20:00:30 +08:00
2018-04-11 18:41:26 +08:00
2018-05-14 13:43:19 +08:00
2018-06-06 20:15:48 +08:00
2018-06-01 10:22:02 +08:00
2018-05-14 13:43:19 +08:00
2018-06-05 13:23:52 +08:00
2018-04-08 21:09:47 +08:00
2018-06-01 10:22:02 +08:00
2018-04-26 17:40:10 +08:00
2018-03-09 21:19:24 +08:00
2018-04-03 20:00:30 +08:00
2018-02-22 18:03:38 +08:00
2018-04-08 22:28:25 +08:00
2018-05-24 17:24:30 +08:00
2018-05-23 12:35:16 +08:00
2018-06-01 10:22:02 +08:00
2017-09-12 01:02:41 -05:00
2018-04-03 20:00:30 +08:00
2018-03-15 16:35:58 +08:00
2018-04-27 11:36:20 +08:00
2018-05-29 00:31:16 +08:00
2018-06-06 20:15:48 +08:00
2018-04-13 16:31:43 +08:00
2018-06-04 18:38:17 +08:00
2018-05-30 16:14:51 +08:00
2018-06-06 17:13:28 +08:00
2018-06-06 17:13:28 +08:00
2018-05-14 13:43:19 +08:00
2018-02-08 15:55:52 +08:00
2018-03-23 10:13:23 +08:00
2018-04-18 19:42:46 +08:00
2018-06-01 10:22:02 +08:00
2018-05-29 21:19:14 +08:00
2018-06-01 10:22:02 +08:00