[MDEV-19642] Adding and Removing Time Periods section syntax error with SQLs Created: 2019-05-30 Updated: 2019-06-06 Resolved: 2019-06-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Shahriyar Rzayev (Inactive) | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Documentation, docs | ||
| Description |
|
Doc link: "To remove a period, use the DROP PERIOD clause: ALTER TBALE test.t2 DROP PERIOD time_period;" It is clear that it should be TABLE, but:
It seems to be:
Same applies below: "Both ADD PERIOD and DROP PERIOD clauses include an option to handle whether the period already exists: ALTER TABLE test.t2 ADD PERIOD IF NOT EXISTS time_period(date_1, date_2); ALTER TABLE test.t2 DROP PERIOD IF EXISTS time_period; Syntax error for given SQLs:
Testing:
Now it is clear that the command should be:
The last one:
|
| Comments |
| Comment by Sergei Golubchik [ 2019-06-05 ] |
|
FYI, in case it wasn't clear, the correct standard syntax is DROP PERIOD FOR xxx |