[MDEV-780] LP:967396 - Datetime field does not accept default NOW() Created: 2012-03-28 Updated: 2013-04-05 Resolved: 2013-04-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 10.0.1 |
| Type: | Task | Priority: | Minor |
| Reporter: | Mark Dhas (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
How to re-recreate bug: Maria[test]>CREATE TABLE testdefaultnow (createdtime DATETIME DEFAULT NOW()); Why we need it: While obviously there are ways around this using triggers and/or timestamps. Currently you can only have one timestamp column per table Maria[test]>CREATE TABLE testdefaultnow (createdtime timestamp default current_timestamp(), updatedtime timestamp default current_timestamp()); Ideally we'd be able to create tables that have a create time and an update time. |
| Comments |
| Comment by Mark Dhas (Inactive) [ 2012-03-28 ] |
|
Re: Datetime field does not accept default NOW() |
| Comment by Rasmus Johansson (Inactive) [ 2012-03-28 ] |
|
Launchpad bug id: 967396 |