[MDEV-4701] Sequence: value out of range Created: 2013-06-24 Updated: 2013-10-31 Resolved: 2013-10-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.3 |
| Fix Version/s: | 10.0.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Federico Razzoli | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
|
| Comments |
| Comment by Sergei Golubchik [ 2013-10-31 ] |
|
Yes, this always happens when you do an unsigned subtraction and end up with a negative result, like in SELECT 0 - CAST(1 AS UNSIGNED); if you need that to work, either cast an unsigned integer to signed or set sql_mode to NO_UNSIGNED_SUBTRACTION. |