| Bug #5929 | Traditional: MOD with 0 divisor should return error | ||
|---|---|---|---|
| Submitted: | 6 Oct 2004 17:24 | Modified: | 4 Jan 2007 0:16 |
| Reporter: | Trudy Pelzer | Email Updates: | |
| Status: | Verified | ||
| Category: | Server: Errors | Severity: | S3 (Non-critical) |
| Version: | 5.0.2-alpha-debug | OS: | Linux (SuSE 9.1) |
| Assigned to: | Target Version: | ||
| Triage: | Triaged: D2 (Serious) / R4 (High) / E4 (High) | ||
[6 Oct 2004 17:24]
Trudy Pelzer
[6 Oct 2004 17:32]
Miguel Solorzano
Verified against latest BK source tree.
[17 Dec 2006 1:13]
Vladimir Shebordaev
Yet another one. The warning is also generated only in traditional mode due to MODE_ERROR_ON)DIVISION_BY_ZERO is unset by default. mysql> select * from t1 where mod(col1,0) = 1; Empty set, 1 warning (47.40 sec) mysql> show warnings; +-------+------+---------------+ | Level | Code | Message | +-------+------+---------------+ | Error | 1365 | Division by 0 | +-------+------+---------------+ 1 row in set (3.04 sec) These issues are due to Items' got evaluated with no abort_on_warning flag set, so all the faulty arithmetics in SELECT path just goes through.
[20 Dec 2006 9:45]
Konstantin Osipov
Hello Timothy, this bug is too big for the maintenance team. It's not a bug, but a documented limitation. I am claiming it anyway.
