Bug #82070 | UNIX_TIMESTAMP() returns decimal (NO fractional seconds part) | ||
---|---|---|---|
Submitted: | 30 Jun 2016 17:14 | Modified: | 11 Oct 2018 7:51 |
Reporter: | Laule Veit | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.6.30, 5.6.31, 5.7.13 | OS: | SUSE (Leap 42) |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression |
[30 Jun 2016 17:14]
Laule Veit
[1 Jul 2016 4:12]
MySQL Verification Team
Hello Laule Veit, Thank you for the report and test case. Observed that 5.6.31/5.7.13 are affected. Thanks, Umesh
[11 Oct 2018 7:51]
Roy Lyseng
This is not a bug, see the description above. If you really need this value as an integer, you might add a CAST operator, e.g: SELECT CAST(UNIX_TIMESTAMP(CONCAT(tdate,' ',ttime)) AS SIGNED);