Merge lp:~stewart/drizzle/bug723653 into lp:drizzle

Proposed by Stewart Smith
Status: Merged
Merged at revision: 2638
Proposed branch: lp:~stewart/drizzle/bug723653
Merge into: lp:drizzle
Diff against target: 157 lines (+101/-5)
4 files modified
docs/functions/current_time_functions.rst (+23/-1)
docs/functions/extract_date_functions.rst (+64/-1)
docs/mysql_differences.rst (+8/-1)
docs/orderby.rst (+6/-2)
To merge this branch: bzr merge lp:~stewart/drizzle/bug723653
Reviewer Review Type Date Requested Status
Drizzle Trunk Pending
Review via email: mp+179101@code.launchpad.net

Description of the change

a bunch of docs updates from an old TODO list.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'docs/functions/current_time_functions.rst'
--- docs/functions/current_time_functions.rst 2012-06-22 06:36:34 +0000
+++ docs/functions/current_time_functions.rst 2013-08-08 06:26:19 +0000
@@ -1,4 +1,26 @@
1CURRENT TIME FUNCTIONS1CURRENT TIME FUNCTIONS
2=======================2=======================
33
4'TODO'
5\ No newline at end of file4\ No newline at end of file
5==================== ================================
6Function Description
7==================== ================================
8NOW() Returns the current time (UTC)
9UTC_TIMESTAMP() Synonym for NOW()
10CURRENT_TIMESTAMP() Synonym for NOW()
11==================== ================================
12
13.. _now:
14
15NOW
16---
17
18You can call `NOW()`, `UTC_TIMESTAMP()` or `CURRENT_TIMESTAMP()` to get the current time. All time in Drizzle is UTC.
19
20.. code-block:: mysql
21
22 drizzle> select NOW(), UTC_TIMESTAMP(), CURRENT_TIMESTAMP()\G
23 *************************** 1. row ***************************
24 now(): 2013-08-08 06:11:41.442568
25 UTC_timestamp(): 2013-08-08 06:11:41.442568
26 current_timestamp(): 2013-08-08 06:11:41.442568
27 1 row in set (0.000468 sec)
628
=== modified file 'docs/functions/extract_date_functions.rst'
--- docs/functions/extract_date_functions.rst 2012-06-22 06:36:34 +0000
+++ docs/functions/extract_date_functions.rst 2013-08-08 06:26:19 +0000
@@ -8,4 +8,67 @@
88
9 EXTRACT(field FROM source)9 EXTRACT(field FROM source)
1010
11'TODO'
12\ No newline at end of file11\ No newline at end of file
12You can extract a field from a datetime. The fields you can extract are:
13 * YEAR
14 * YEAR_MONTH (year and month)
15 * QUARTER
16 * MONTH
17 * WEEK
18 * DAY
19 * DAY_HOUR (day and hour)
20 * DAY_MINUTE (day and minute)
21 * DAY_SECOND (day and second)
22 * HOUR
23 * HOUR_MINUTE (hour and minute)
24 * HOUR_SECOND (hour and second)
25 * MINUTE
26 * MINUTE_SECOND (minute and second)
27 * SECOND
28 * MICROSECOND
29 * DAY_MICROSECOND
30 * HOUR_MICROSECOND
31 * MINUTE_MICROSECOND
32 * SECOND_MICROSECOND
33
34Examples
35--------
36
37.. code-block:: mysql
38
39 drizzle> SELECT EXTRACT(YEAR FROM '1982-01-29');
40 +---------------------------------+
41 | EXTRACT(YEAR FROM '1982-01-29') |
42 +---------------------------------+
43 | 1982 |
44 +---------------------------------+
45 1 row in set (0.000494 sec)
46
47.. code-block:: mysql
48
49 drizzle> SELECT EXTRACT(MONTH FROM '1982-01-29');
50 +----------------------------------+
51 | EXTRACT(MONTH FROM '1982-01-29') |
52 +----------------------------------+
53 | 1 |
54 +----------------------------------+
55 1 row in set (0.000484 sec)
56
57.. code-block:: mysql
58
59 drizzle> SELECT EXTRACT(YEAR_MONTH FROM '1982-01-29');
60 +---------------------------------------+
61 | EXTRACT(YEAR_MONTH FROM '1982-01-29') |
62 +---------------------------------------+
63 | 198201 |
64 +---------------------------------------+
65 1 row in set (0.000492 sec)
66
67.. code-block:: mysql
68
69 drizzle> SELECT EXTRACT(SECOND_MICROSECOND FROM NOW());
70 +----------------------------------------+
71 | EXTRACT(SECOND_MICROSECOND FROM NOW()) |
72 +----------------------------------------+
73 | 13761098 |
74 +----------------------------------------+
75 1 row in set (0.000499 sec)
1376
=== modified file 'docs/mysql_differences.rst'
--- docs/mysql_differences.rst 2012-03-08 00:54:48 +0000
+++ docs/mysql_differences.rst 2013-08-08 06:26:19 +0000
@@ -104,6 +104,10 @@
104Partitioning104Partitioning
105------------105------------
106106
107Drizzle does not support table partitioning at this time. This is due to
108deficiencies in the architecture of MySQL partitioning. We think it should
109be implemented as a rewrite engine rather than a storage engine.
110
107INFORMATION_SCHEMA111INFORMATION_SCHEMA
108------------------112------------------
109113
@@ -134,7 +138,10 @@
134No gotcha of using the unix socket when localhost is specified and then138No gotcha of using the unix socket when localhost is specified and then
135connecting you to the wrong database server.139connecting you to the wrong database server.
136140
137There is no Drizzle admin command.141After a survey of commands from `mysqladmin` we determined that by adding
142an option to the normal drizzle command line client to shutdown the server
143we could negate the need for a `drizzleadmin` command and so there is none.
144You can achieve all the same results via SQL.
138145
139Storage Engines146Storage Engines
140---------------147---------------
141148
=== modified file 'docs/orderby.rst'
--- docs/orderby.rst 2012-06-22 06:36:34 +0000
+++ docs/orderby.rst 2013-08-08 06:26:19 +0000
@@ -1,7 +1,11 @@
1ORDER BY1ORDER BY
2========2========
33
4'TODO'4You can use `ORDER BY` to specify the order of the rows returned for a query.
5Without an `ORDER BY` clause, rows may be returned in any order. Some storage
6engines are more deterministic about the order they return rows than others,
7so while it may appear that you always get rows back in the same order without
8an `ORDER BY` clause, this is a coincidence.
59
6SQL ORDER BY Syntax:10SQL ORDER BY Syntax:
711
@@ -11,4 +15,4 @@
11 FROM table_name15 FROM table_name
12 ORDER BY column_name(s) ASC|DESC;16 ORDER BY column_name(s) ASC|DESC;
1317
14'TODO'
15\ No newline at end of file18\ No newline at end of file
19You can provide a list of columns and if results should be in ascending or descending order.

Subscribers

People subscribed via source and target branches

to all changes: