diff options
author | bell@sanja.is.com.ua <> | 2005-08-02 22:54:49 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2005-08-02 22:54:49 +0300 |
commit | 4c69fbe632ed1a46457bef44ca20dd3e5374e7df (patch) | |
tree | fa83e9de145ab2dfa580ead7f709f663f5c7e67b /sql/table.h | |
parent | c9de0b15f2008062fff7e6a35b396a9f7581fe6d (diff) | |
download | mariadb-git-4c69fbe632ed1a46457bef44ca20dd3e5374e7df.tar.gz |
issue correct error message in case of view presence for duplicated table on update (BUG#10773)
frequently used command sequence replaced with inline function
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index 8bc4e01852f..c6a74c67ea8 100644 --- a/sql/table.h +++ b/sql/table.h @@ -459,6 +459,8 @@ typedef struct st_table_list st_table_list *view); bool set_insert_values(MEM_ROOT *mem_root); st_table_list *find_underlying_table(TABLE *table); + inline st_table_list *top_table() + { return belong_to_view ? belong_to_view : this; } } TABLE_LIST; class Item; |