[MDEV-26563] Cast issue with Cast to INTEGER In IF Statement Created: 2021-09-07 Updated: 2021-09-07 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.5.12, 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | gvlpehqwiaddujczlw@zqrni.net | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
DEBIAN |
||
| Attachments: |
|
| Description |
|
When CAST to DECIMAL and CAST TO INTEGER are in the same IF Statement it will always output the result as DECIMAL
Expected Result: 10 |