1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-09 08:01:34 +03:00
Files
mariadb/mysql-test/t
unknown 4f3eab5804 Fix for bug #33834: FRAC_SECOND: Applicability not clear in
documentation

While the manual mentions FRAC_SECOND only for the TIMESTAMPADD()
function, it was also possible to use FRAC_SECOND with DATE_ADD(),
DATE_SUB() and +/- INTERVAL.

Fixed the parser to match the manual, i.e. using FRAC_SECOND for 
anything other than TIMESTAMPADD()/TIMESTAMPDIFF() now produces a 
syntax error.

Additionally, the patch allows MICROSECOND to be used in TIMESTAMPADD/
TIMESTAMPDIFF and marks FRAC_SECOND as deprecated.


mysql-test/r/func_time.result:
  Added a test case for bug #33834.
mysql-test/t/func_time.test:
  Added a test case for bug #33834.
sql/sql_yacc.yy:
  Reject FRAC_SECOND for anything other than TIMESTAMPADD() or
  TIMESTAMPDIFF().
  Allow MICROSECOND to be used with TIMESTAMPADD()/TIMESTAMPDIFF().
  Warn about FRAC_SECOND being a deprecated unit.
2008-02-25 13:25:57 +03:00
..
2007-08-29 12:44:43 +02:00
2007-05-17 19:38:34 +03:00
2007-11-06 13:53:26 +02:00
2007-11-06 20:31:40 +02:00
2007-08-07 05:35:20 -04:00
2007-04-10 16:55:48 +03:00
2007-07-23 23:35:43 -07:00
2007-06-28 16:03:01 -07:00
2007-06-28 16:03:01 -07:00
2007-07-06 11:35:10 -07:00
2007-07-06 11:35:10 -07:00
2007-12-13 15:47:23 +04:00
2007-11-24 15:02:29 +04:00
2007-03-20 19:36:11 +01:00
2007-07-11 18:45:35 -07:00
2007-06-21 21:39:52 -04:00
2007-06-20 14:21:48 +05:00
2007-11-02 13:40:34 +03:00
2007-11-02 13:40:34 +03:00
2007-08-31 16:59:07 +05:00
2007-08-31 16:59:07 +05:00
2007-11-05 20:18:22 +01:00
2007-10-26 08:42:33 +02:00
2007-03-21 09:13:05 +01:00
2007-11-05 20:18:22 +01:00
2007-06-17 22:04:01 +02:00
2007-11-20 20:15:20 +04:00
2007-11-10 18:27:57 +04:00
2008-01-26 21:45:35 -08:00
2007-06-01 17:49:01 +04:00
2007-06-21 16:55:52 +02:00
2007-06-01 18:04:25 +04:00
2007-06-22 09:28:38 +05:00
2007-05-24 15:35:43 +05:00
2007-05-31 17:30:56 +05:00
2007-09-24 12:42:44 +02:00
2007-08-22 15:43:16 +03:00
2007-06-06 18:55:21 +05:00
2007-04-17 12:32:01 +02:00
2007-07-22 18:26:16 -07:00
2007-07-15 21:51:36 +04:00
2007-03-29 09:08:30 +05:00
2007-06-03 14:46:09 +04:00
2008-02-07 02:33:21 +04:00
2007-04-23 17:15:51 +03:00