Details
-
New Feature
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
TO_DSINTERVAL converts its argument to a value of the INTERVAL DAY TO SECOND data type.
The grammar and syntax rules:
TO_DSINTERVAL <left paren> <expr> [ DEFAULT <expr> ON CONVERSION ERROR ] <right paren>
|
- Both <expr> instances should evaluate to a character string data type (CHAR,VARCHAR,TEXT) with a value matching <ds format>.
- The optional DEFAULT clause allows to specify the value returned in case if an error happens while converting the argument.
<ds format> := <ds format sql> | <ds format iso>
|
|
<ds format sql> := <sign> <days> <space> <hours> : <minutes> : <seconds> [. frac_seconds ]
|
|
<ds format iso> := [<minus sign>] P [<days> D] [T [<hours> H] [<minutes> M] [<seconds> [<period> <frac seconds>] S ] ]
|
|
<days> := <unsigned integer>
|
<hours> := <unsigned integer>
|
<minutes> := <unsigned integer>
|
<seconds> := <unsigned integer>
|
<frac seconds> := <unsigned integer>
|
Examples
TODO
Attachments
Issue Links
- is part of
-
MDEV-35973 Oracle Compatibility Project 1 for 2025
-
- Stalled
-
- relates to
-
MDEV-12513 GSoC: INTERVAL data type
-
- Stalled
-
- links to