mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-16975 Application-time periods: ALTER TABLE
* implicit period constraint is hidden and cannot be dropped independently * create...like and create...select support
This commit is contained in:
committed by
Sergei Golubchik
parent
b2bd52290a
commit
6294516a56
@ -288,7 +288,7 @@ public:
|
||||
|
||||
class Alter_drop :public Sql_alloc {
|
||||
public:
|
||||
enum drop_type {KEY, COLUMN, FOREIGN_KEY, CHECK_CONSTRAINT };
|
||||
enum drop_type { KEY, COLUMN, FOREIGN_KEY, CHECK_CONSTRAINT, PERIOD };
|
||||
const char *name;
|
||||
enum drop_type type;
|
||||
bool drop_if_exists;
|
||||
@ -307,6 +307,7 @@ public:
|
||||
{
|
||||
return type == COLUMN ? "COLUMN" :
|
||||
type == CHECK_CONSTRAINT ? "CONSTRAINT" :
|
||||
type == PERIOD ? "PERIOD" :
|
||||
type == KEY ? "INDEX" : "FOREIGN KEY";
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user