mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
SQL: [Docs] Fix doc errors regarding CURRENT_DATE. (#40649)
Some parts wrongly refered to CURRENT_TIMESTAMP. (cherry picked from commit 3dd0384d683940871f5d061f153b70c0420150fa)
This commit is contained in:
parent
4f5a83dba2
commit
6edb802716
@ -99,6 +99,7 @@ Functions that target date/time.
|
||||
--------------------------------------------------
|
||||
CURRENT_DATE
|
||||
CURRENT_DATE()
|
||||
CURDATE()
|
||||
--------------------------------------------------
|
||||
|
||||
*Input*: _none_
|
||||
@ -117,7 +118,12 @@ This method always returns the same value for its every occurrence within the sa
|
||||
|
||||
["source","sql",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{sql-specs}/docs/docs.csv-spec[curDate]
|
||||
include-tagged::{sql-specs}/docs/docs.csv-spec[currentDate]
|
||||
--------------------------------------------------
|
||||
|
||||
["source","sql",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{sql-specs}/docs/docs.csv-spec[currentDateFunction]
|
||||
--------------------------------------------------
|
||||
|
||||
["source","sql",subs="attributes,callouts,macros"]
|
||||
|
@ -2359,18 +2359,28 @@ SELECT WEEK(CAST('1988-01-05T09:22:10Z' AS TIMESTAMP)) AS week, ISOWEEK(CAST('19
|
||||
|
||||
|
||||
currentDate-Ignore
|
||||
// tag::curDate
|
||||
SELECT CURRENT_TIMESTAMP AS result;
|
||||
// tag::currentDate
|
||||
SELECT CURRENT_DATE AS result;
|
||||
|
||||
result
|
||||
------------------------
|
||||
2018-12-12
|
||||
// end::curDate
|
||||
// end::currentDate
|
||||
;
|
||||
|
||||
currentDateFunction-Ignore
|
||||
// tag::currentDateFunction
|
||||
SELECT CURRENT_DATE() AS result;
|
||||
|
||||
result
|
||||
------------------------
|
||||
2018-12-12
|
||||
// end::currentDateFunction
|
||||
;
|
||||
|
||||
curDateFunction-Ignore
|
||||
// tag::curDateFunction
|
||||
SELECT CURRENT_TIMESTAMP() AS result;
|
||||
SELECT CURRENT_DATE() AS result;
|
||||
|
||||
result
|
||||
------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user