Skip to content

[Bug] SELECT 10.5 DIV 2 * 2 AS "mynum" Why is the result 2 #30539

@hayden520

Description

@hayden520

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.0.3-rc6

What's Wrong?

I would like to ask what is the result of executing this in the terminal and whether this is a problem.

`
mysql> SELECT 10.5 DIV 2 * 2 AS "mynum";
+-------+
| mynum |
+-------+
| 2 |
+-------+
1 row in set (0.01 sec)

mysql>
`

What You Expected?

10

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions