[MDEV-14471] Missing setting to switch default TIMESTAMP, TIME and DATETIME precision Created: 2017-11-22  Updated: 2017-11-22

Status: Open
Project: MariaDB Server
Component/s: Configuration
Fix Version/s: None

Type: Task Priority: Major
Reporter: Martin Häcker Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Today I had to invest quite a significant time to switch our system to use sub second precision on timestamp, datetime and time. In the end it required rewriting the relevant parts of the app to actually emit `DATETIME(6)` instead of the more generic DATETIME.

Here's the kicker though, I would have much rather kept the cross platform compatible SQL and flipped a switch on my DB to instruct it that when I leave off the precision, I actually mean `(6)` [or whatever I configured].

Is this something you are interested in adding?


Generated at Thu Feb 08 08:13:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.