diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2012-07-25 20:53:49 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2012-07-25 20:53:49 +0400 |
commit | 2b0f6ece7bd35399de861f1dd5d1ae540ee89ff6 (patch) | |
tree | 1e9216bd7901c2a09b12488bec3f6dae77416b78 /sql/sql_lex.h | |
parent | 0b79fe2b30e7a82a823e7c134eb69cfc0c078f95 (diff) | |
parent | 55597a48698b267b966873727b079cd3ac0d1c18 (diff) | |
download | mariadb-git-2b0f6ece7bd35399de861f1dd5d1ae540ee89ff6.tar.gz |
Merge 5.5-main -> 5.5-show-explain
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index d8316dcc03c..eac41a9f0c0 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -1008,12 +1008,7 @@ public: void clear_index_hints(void) { index_hints= NULL; } bool is_part_of_union() { return master_unit()->is_union(); } - /* - Optimize all subqueries that have not been flattened into semi-joins. - This functionality is a method of SELECT_LEX instead of JOIN because - some SQL statements as DELETE do not have a corresponding JOIN object. - */ - bool optimize_unflattened_subqueries(); + bool optimize_unflattened_subqueries(bool const_only); /* Set the EXPLAIN type for this subquery. */ void set_explain_type(bool on_the_fly); bool handle_derived(LEX *lex, uint phases); @@ -1034,6 +1029,7 @@ public: void mark_as_belong_to_derived(TABLE_LIST *derived); void increase_derived_records(ha_rows records); void update_used_tables(); + void update_correlated_cache(); void mark_const_derived(bool empty); bool save_leaf_tables(THD *thd); @@ -1446,6 +1442,12 @@ public: */ BINLOG_STMT_UNSAFE_INSERT_TWO_KEYS, + /** + INSERT into auto-inc field which is not the first part of composed + primary key. + */ + BINLOG_STMT_UNSAFE_AUTOINC_NOT_FIRST, + /* The last element of this enumeration type. */ BINLOG_STMT_UNSAFE_COUNT }; |