diff options
author | Monty <monty@mariadb.org> | 2018-10-29 16:12:52 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-10-29 16:12:52 +0200 |
commit | d30124e844cdcd2eef4b13199e91aa5c304e907c (patch) | |
tree | b6cdfd1428a5ae52f4861a97f8a812b0dadca360 /sql/handler.h | |
parent | 6a6cc8a653a374a60278dfdbd8bd702c0a692e35 (diff) | |
download | mariadb-git-d30124e844cdcd2eef4b13199e91aa5c304e907c.tar.gz |
MDEV-17503 CREATE SEQUENCE failed with innodb_force_primary_key =1
Fixed by adding table flag HA_WANTS_PRIMARY_KEY, which is like
HA_REQUIRE_PRIMARY_KEY but tells SQL upper layer that the storage engine
internally can handle tables without primary keys (for example for
sequences or trough user variables)
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index e52f9ddaefb..788ac4dd474 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -301,6 +301,9 @@ enum enum_alter_inplace_result { /* calling cmp_ref() on the engine is expensive */ #define HA_CMP_REF_IS_EXPENSIVE (1ULL << 54) +/* Engine wants primary keys for everything except sequences */ +#define HA_WANTS_PRIMARY_KEY (1ULL << 55) + /* bits in index_flags(index_number) for what you can do with index */ #define HA_READ_NEXT 1 /* TODO really use this flag */ #define HA_READ_PREV 2 /* supports ::index_prev */ |