[MDEV-9932] provide a default value of the current date for date fields Created: 2016-04-15  Updated: 2016-10-05  Resolved: 2016-10-05

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Fix Version/s: 10.2.2

Type: Task Priority: Major
Reporter: Kyle Joiner (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
PartOf
is part of MDEV-10134 Add full support for DEFAULT Closed

 Description   

Provide a default value for A date field of the current date (like CURDATE()).

Like:
d date NOT NULL DEFAULT CURRENT_DATE



 Comments   
Comment by Arnaud Adant [ 2016-04-25 ]

Even if this is not a major feature, a generic framework for defaulting fields would be welcome. A function could be used to initialize fields in general. Calculated default values.

Comment by Michael Widenius [ 2016-10-05 ]

Fixed as part of MDEB-10134

Generated at Thu Feb 08 07:38:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.