Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Add more format of datetime. #1271

Merged
merged 3 commits into from
Jul 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/tck/features/expression/FunctionCall.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,17 @@ Feature: Function Call Expression
Then the result should be, in any order:
| a | b | c | d |
| /^\d+$/ | /^\d{4}\-\d{2}-\d{2}$/ | /^\d{2}:\d{2}:\d{2}\.\d{6}$/ | /^\d{4}\-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}$/ |
When executing query:
"""
YIELD datetime('2019-03-02T22:00:30') as dt
"""
Then the result should be, in any order:
| dt |
| '2019-03-02T22:00:30.000000' |
When executing query:
"""
YIELD datetime('2019-03-02 22:00:30') as dt
"""
Then the result should be, in any order:
| dt |
| '2019-03-02T22:00:30.000000' |