diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-04-24 09:26:40 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-04-24 09:26:40 +0300 |
commit | 9c34a4124d67d9e3f70837eaeb11290f35e8f8d0 (patch) | |
tree | 1adb4d44b9b7e7cf20e63e3ebc95ba05f7dc47e9 /sql/table.h | |
parent | 5b79303b40e31d77f616c2b797f58de41973e6a3 (diff) | |
parent | c7bb33724826dab53831b74bc0cf7ec311eb13f0 (diff) | |
download | mariadb-git-9c34a4124d67d9e3f70837eaeb11290f35e8f8d0.tar.gz |
Merge 10.0 into 10.1
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/table.h b/sql/table.h index 61763d76391..bf9b55089ef 100644 --- a/sql/table.h +++ b/sql/table.h @@ -1,7 +1,7 @@ #ifndef TABLE_INCLUDED #define TABLE_INCLUDED -/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. - Copyright (c) 2009, 2014, SkySQL Ab. +/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. + Copyright (c) 2009, 2018, MariaDB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -513,10 +513,11 @@ typedef struct st_table_field_def class Table_check_intact { protected: + bool has_keys; virtual void report_error(uint code, const char *fmt, ...)= 0; public: - Table_check_intact() {} + Table_check_intact(bool keys= false) : has_keys(keys) {} virtual ~Table_check_intact() {} /** Checks whether a table is intact. */ @@ -531,6 +532,8 @@ class Table_check_intact_log_error : public Table_check_intact { protected: void report_error(uint, const char *fmt, ...); +public: + Table_check_intact_log_error() : Table_check_intact(true) {} }; |