Skip to content

MySQL函数未实现: CURTIME #22931

Closed
Closed

Description

@dengn

MySQL函数未实现: CURTIME

函数信息

函数名称: CURTIME

函数类别: date

MySQL函数描述

MySQL CURTIME函数:
返回当前时间。

语法: CURTIME([fsp]) 或 CURRENT_TIME([fsp])

功能:
- 返回当前时间(不包含日期部分)
- 格式为 'HH:MM:SS'
- 可选参数fsp指定小数秒精度(0-6)
- CURTIME()和CURRENT_TIME是同一个函数的别名

测试用例

    -- 测试CURTIME函数的基本功能
    SELECT CURTIME() AS current_time;
    

预期行为

预期行为:
- CURTIME() 应返回当前时间,格式为 'HH:MM:SS'
- CURRENT_TIME 应返回与CURTIME()相同的结果
- CURTIME(3) 应返回包含毫秒的时间,如 'HH:MM:SS.mmm'

MatrixOne当前行为

未实现该函数。

参考资料

测试脚本

测试脚本路径: date/curtime.py

Activity

  1. added a commit that references this issue on Nov 21, 2025
  2. added
    ai-easy
    priority/p0
    kind/compatibility
    on Nov 21, 2025
  3. added this to the MO-202511 milestone on Nov 21, 2025
  4. added a commit that references this issue on Nov 23, 2025
  5. fengttt commented on Nov 24, 2025

    @fengttt
    Contributor

    Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai-easykind/compatibilitypriority/p0

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions