summaryrefslogtreecommitdiff
path: root/sql/opt_range.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-11-10 17:54:46 +0300
committerAleksey Midenkov <midenok@gmail.com>2017-11-15 00:22:10 +0300
commit33085349e97a5b5c768c38c6f8bed11c666c0643 (patch)
tree83382bd488d28cf114b211a255247cb07cb1d9be /sql/opt_range.h
parentfa79f6ac86c700c23041dd0f314a71bbfb1f4bdf (diff)
downloadmariadb-git-33085349e97a5b5c768c38c6f8bed11c666c0643.tar.gz
IB, SQL: removed VTQ, added TRT on SQL layer [closes #305]
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r--sql/opt_range.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h
index 95e231433d2..b3eb25e5f65 100644
--- a/sql/opt_range.h
+++ b/sql/opt_range.h
@@ -1651,6 +1651,38 @@ class SQL_SELECT :public Sql_alloc {
};
+class SQL_SELECT_auto
+{
+ SQL_SELECT *select;
+public:
+ SQL_SELECT_auto(): select(NULL)
+ {}
+ ~SQL_SELECT_auto()
+ {
+ delete select;
+ }
+ SQL_SELECT_auto&
+ operator= (SQL_SELECT *_select)
+ {
+ select= _select;
+ return *this;
+ }
+ operator SQL_SELECT * () const
+ {
+ return select;
+ }
+ SQL_SELECT *
+ operator-> () const
+ {
+ return select;
+ }
+ operator bool () const
+ {
+ return select;
+ }
+};
+
+
class FT_SELECT: public QUICK_RANGE_SELECT
{
public: