unknown
bc4a456758
MDEV-452 Add full support for auto-initialized/updated timestamp and datetime
...
Generalized support for auto-updated and/or auto-initialized timestamp
and datetime columns. This patch is a reimplementation of MySQL's
"WL#5874: CURRENT_TIMESTAMP as DEFAULT for DATETIME columns". In order to
ease future merges, this implementation reused few function and variable
names from MySQL's patch, however the implementation is quite different.
TODO:
The only unresolved problem in this patch is the semantics of LOAD DATA for
TIMESTAMP and DATETIME columns in the cases when there are missing or NULL
columns. I couldn't fully comprehend the logic behind MySQL's behavior and
its relationship with their own documentation, so I left the results to be
more consistent with all other LOAD cases.
The problematic test cases can be seen by running the test file function_defaults,
and observing the test case differences. Those were left on purpose for discussion.
2012-10-17 15:43:56 +03:00
..
2009-06-19 17:04:25 +02:00
2008-03-07 17:33:07 +01:00
2008-03-07 17:33:07 +01:00
2012-09-08 12:15:55 +02:00
2011-12-12 23:58:40 +01:00
2009-01-31 17:22:59 -02:00
2011-03-09 16:04:50 +02:00
2009-10-09 16:52:02 +02:00
2011-12-12 23:58:40 +01:00
2010-06-02 18:08:06 +02:00
2010-03-19 10:02:42 +01:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2009-02-05 17:51:00 +04:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2009-01-31 17:22:59 -02:00
2008-06-18 19:23:55 +02:00
2012-08-09 17:22:00 +02:00
2010-07-09 15:40:38 +03:00
2008-11-13 13:50:20 +04:00
2011-10-19 21:45:18 +02:00
2011-10-19 21:45:18 +02:00
2011-10-19 21:45:18 +02:00
2009-03-26 19:12:19 +01:00
2008-11-13 13:50:20 +04:00
2008-03-07 17:33:07 +01:00
2009-10-23 16:02:20 +05:00
2012-08-09 17:22:00 +02:00
2011-10-28 20:30:42 +02:00
2012-02-23 09:18:48 +01:00
2012-08-09 17:22:00 +02:00
2012-08-09 17:22:00 +02:00
2012-08-09 17:22:00 +02:00
2012-01-26 16:55:40 +01:00
2012-10-17 15:43:56 +03:00
2011-10-19 21:45:18 +02:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2009-11-07 07:29:10 +01:00
2012-02-07 16:22:36 +01:00
2011-10-19 21:45:18 +02:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2010-07-05 11:34:29 +04:00
2010-08-05 18:38:06 +03:00
2010-11-25 18:17:28 +01:00
2008-06-18 19:23:55 +02:00
2010-11-02 17:45:26 +02:00
2008-06-18 19:23:55 +02:00
2011-10-19 21:45:18 +02:00
2009-10-23 16:02:20 +05:00
2009-10-23 16:02:20 +05:00
2008-06-18 19:23:55 +02:00
2009-10-23 16:02:20 +05:00
2010-01-11 18:47:27 -07:00
2010-02-20 13:07:32 +03:00
2011-03-18 16:44:42 +05:30
2010-11-02 17:45:26 +02:00
2011-12-12 23:58:40 +01:00
2008-03-07 17:33:07 +01:00
2011-03-18 16:44:42 +05:30
2010-11-02 17:45:26 +02:00
2010-11-02 17:45:26 +02:00
2009-10-23 16:02:20 +05:00
2008-06-16 20:39:58 +02:00
2009-10-23 16:02:20 +05:00
2011-10-28 20:30:42 +02:00
2011-10-22 01:07:39 +02:00
2009-10-23 16:02:20 +05:00
2010-11-25 18:17:28 +01:00
2010-11-25 18:17:28 +01:00
2011-10-19 21:45:18 +02:00
2011-10-19 21:45:18 +02:00
2010-02-20 13:07:32 +03:00
2008-06-16 20:39:58 +02:00
2010-11-25 18:17:28 +01:00
2011-10-19 21:45:18 +02:00
2008-06-16 20:39:58 +02:00
2010-11-25 18:17:28 +01:00
2008-06-18 19:23:55 +02:00
2008-06-18 19:23:55 +02:00
2012-09-08 12:15:55 +02:00
2011-12-12 23:58:40 +01:00
2009-01-31 17:22:59 -02:00
2011-03-09 16:04:50 +02:00
2009-10-09 16:52:02 +02:00
2011-12-12 23:58:40 +01:00
2010-06-02 18:08:06 +02:00
2010-03-19 10:02:42 +01:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2009-02-05 17:51:00 +04:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2009-01-31 17:22:59 -02:00
2012-08-09 17:22:00 +02:00
2008-06-18 19:23:55 +02:00
2008-06-18 19:23:55 +02:00
2012-09-08 12:15:55 +02:00
2011-12-12 23:58:40 +01:00
2009-01-31 17:22:59 -02:00
2011-03-09 16:04:50 +02:00
2009-10-09 16:52:02 +02:00
2011-12-12 23:58:40 +01:00
2010-06-02 18:08:06 +02:00
2010-03-19 10:02:42 +01:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2009-02-05 17:51:00 +04:00
2011-12-12 23:58:40 +01:00
2011-12-12 23:58:40 +01:00
2009-01-31 17:22:59 -02:00
2012-08-09 17:22:00 +02:00
2011-12-12 23:58:40 +01:00
2012-01-26 16:55:40 +01:00
2011-10-19 21:45:18 +02:00
2011-10-19 21:45:18 +02:00
2010-05-14 09:28:51 +04:00
2012-08-09 17:22:00 +02:00