[MDEV-16864] Implement class Item_func_timestamp Created: 2018-07-31  Updated: 2018-07-31  Resolved: 2018-07-31

Status: Closed
Project: MariaDB Server
Component/s: Data types
Fix Version/s: 10.4.0

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-4912 Data type plugin API version 1 Closed
blocks MDEV-15750 preserve MYSQL_TYPE_TIMESTAMP in temp... Stalled

 Description   

Currently functions TIMESTAMP() and ADDTIME()/SUBTIME() reuse the same class Item_func_add_time.
We'll add a dedicated class for TIMESTAMP().

Rationale:

  • Item_func_timestamp does not have to derive from Item_hybrid_func. It always returns a fixed data type (DATETIME for now).
  • Soon we'll change TIMESTAMP() to return TIMESTAMP instead of DATETIME, so the underlying implementations will diverge anyway.
  • Item_func_add_time will be simplified

Note, with the recently implemented class Sec6_add, there won't be duplicate code.


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