[MDEV-29193] CONCAT of DOUBLE with a string cuts off last character sometimes Created: 2022-07-28 Updated: 2022-08-04 Resolved: 2022-08-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 10.8.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Simon | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I found a strange behaviour of DOUBLE-fields. I have a table with a field duration which is defined as double(4,2) Then there are the following entries:
When I do the following select:
I get the following result:
as soon as the value exceeds 10, the "s" of hours gets cut off. changing the field to decimal(4,2) solved the problem for me. |
| Comments |
| Comment by Alice Sherepa [ 2022-08-02 ] | |||||||||||||||||||||||
|
Could you please describe more how exactly you were getting that behavior, I can't repeat it:
| |||||||||||||||||||||||
| Comment by Simon [ 2022-08-04 ] | |||||||||||||||||||||||
|
Well, this is very strange. I tested the behaviour on my local server, on our company server and another person tested it as well. So I think, this isn't a bug in MariaDB. |