Bug #86990 | Window frame accepts non-integer arg for ROWS | ||
---|---|---|---|
Submitted: | 8 Jul 2017 21:42 | Modified: | 2 Oct 2017 17:29 |
Reporter: | Dag Wanvik | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.2 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[8 Jul 2017 21:42]
Dag Wanvik
[8 Jul 2017 22:10]
Dag Wanvik
Posted by developer: Using dynamic argument, we can smuggle in worse: set @arg='x3_5'; prepare p from 'select sum(w) over (rows ? preceding) from t'; mysql> execute p using @arg; +--------------------------------+ | sum(w) over (rows ? preceding) | +--------------------------------+ | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | +--------------------------------+
[2 Oct 2017 17:29]
Paul DuBois
Posted by developer: Fixed in 8.0.3. For window functions, a ROW frame accepted noninteger arguments for the row count.