Skip to content

Commit

Permalink
Doctest typo fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Jan 13, 2023
1 parent 877d97c commit c91e965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/user/dql/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,23 @@ The following rule is applied on coversion: a `TIME` applied to today's date; `D
fetched rows / total rows = 1/1
+--------------------+-----------------+-----------------+
| now.time > today | now.time.type | now.date.type |
+--------------------+-----------------+-----------------+
|--------------------+-----------------+-----------------|
| True | TIME | DATE |
+--------------------+-----------------+-----------------+

os> SELECT current_time() = now() AS `now.time = now`, typeof(current_time()) AS `now.time.type`, typeof(now()) AS `now.type`;
fetched rows / total rows = 1/1
+------------------+-----------------+------------+
| now.time = now | now.time.type | now.type |
+------------------+-----------------+------------+
|------------------+-----------------+------------|
| True | TIME | DATETIME |
+------------------+-----------------+------------+

os> SELECT subtime(now(), current_time()) = current_date() AS `midnight = now.date`, typeof(subtime(now(), current_time())) AS `midnight.type`, typeof(current_date()) AS `now.date.type`;
fetched rows / total rows = 1/1
+-----------------------+-----------------+-----------------+
| midnight = now.date | midnight.type | now.date.type |
+-----------------------+-----------------+-----------------+
|-----------------------+-----------------+-----------------|
| True | DATETIME | DATE |
+-----------------------+-----------------+-----------------+

Expand Down

0 comments on commit c91e965

Please sign in to comment.