diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-07-31 11:08:56 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-07-31 11:08:56 +0200 |
commit | de4a3c2a1dd82561a7ef53e3edd812265bd267b2 (patch) | |
tree | 246157bc8320cdc64ec66c9df536a421e74b03df /sql/sql_class.h | |
parent | c39a501cbee72d46a3ba87f2b6658dd711b07925 (diff) | |
download | mariadb-git-de4a3c2a1dd82561a7ef53e3edd812265bd267b2.tar.gz |
MDEV-6312 HA_MUST_USE_TABLE_CONDITION_PUSHDOWN is not accounted by init_read_record()
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 40a24b5cd7f..ce69869b93c 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -2894,6 +2894,11 @@ public: // End implementation of MDL_context_owner interface. + inline bool use_cond_push(handler *file) + { + return (variables.optimizer_switch & OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN) + || (file->ha_table_flags() & HA_MUST_USE_TABLE_CONDITION_PUSHDOWN); + } inline bool is_strict_mode() const { return (bool) (variables.sql_mode & (MODE_STRICT_TRANS_TABLES | |