[MDEV-6466] CONNECT engine cannot handle dates far in the future Created: 2014-07-21 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.12 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Scott Weisgarber | Assignee: | Andrew Hutchings |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | connect-engine | ||
| Environment: |
EC2 instance, Amazon Linux AMI, MaraiaDB 10.0.12 |
||
| Description |
|
The CONNECT engine uses a 32-bit date and cannot handle dates greater than 2038-01-19: they wrap around to 1/1/1970. Our data warehouse uses date ranging (begin and end dates) to track history, and the "current" data has an end date of 8/8/8888. Unfortunately, when trying to transfer data between instances, these dates are returned as 1/1/1970 (in the previous .11 release, they were 1/1/1969). This is preventing us from using the CONNECT engine.
|
| Comments |
| Comment by Olivier Bertrand [ 2014-07-23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I think I can handle this. Indeed, converting to a 32 bit integer is useless Meanwhile, a simple workaround is to declare the columns are CHAR using the
Everything seem to work as if the columns were true date types. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Scott Weisgarber [ 2014-07-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks, Oliver. I'll look into using the workaround for now. |