[MDEV-3706] LP:985828 - regression in sql queries using sub queries (with order by) Created: 2012-04-19 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Sebastien Robin (Inactive) | Assignee: | Oleksandr Byelkin |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
DROP TABLE IF EXISTS stock_table; SET @total_quantity := 0 ;
|
| Comments |
| Comment by Elena Stepanova [ 2012-04-19 ] |
|
Re: regression in sql queries using sub queries (with order by) If you want to get the old behavior, I suppose you can try either of these, whichever suits you best:
SET optimizer_switch = 'derived_merge=off';
DROP TABLE IF EXISTS stock_table; SET @total_quantity := 0 ;
#
DROP TABLE IF EXISTS stock_table; CREATE VIEW q1 AS SET @total_quantity := 0 ;
|
| Comment by Elena Stepanova [ 2012-04-19 ] |
|
Re: regression in sql queries using sub queries (with order by) |
| Comment by Oleksandr Byelkin [ 2012-04-24 ] |
|
Re: regression in sql queries using sub queries (with order by) |
| Comment by Oleksandr Byelkin [ 2012-04-24 ] |
|
Re: regression in sql queries using sub queries (with order by) |
| Comment by Rasmus Johansson (Inactive) [ 2012-04-24 ] |
|
Launchpad bug id: 985828 |