diff options
author | bell@sanja.is.com.ua <> | 2003-01-28 14:48:12 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2003-01-28 14:48:12 +0200 |
commit | 0c5b323d0f534605df9d6f8dc93a7044decccff2 (patch) | |
tree | 627ebfbd22d44074e53cd22c32b38bd9aee3f9c3 /sql/sql_lex.h | |
parent | 5469c014e3c6f4d0b79abfc00b2b222b430e0900 (diff) | |
download | mariadb-git-0c5b323d0f534605df9d6f8dc93a7044decccff2.tar.gz |
fixed bugs in temporary tables in subselect implementation (SCRUM)
merging with switching on static tables optimization (SCRUM)
fixed subselects with uncacheable results
added test for fixed bugs from bugreports
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index a9a792ee783..1cd38cf9f67 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -216,6 +216,7 @@ public: uint with_sum_func; /* sum function indicator and number of it */ bool create_refs; bool dependent; /* dependent from outer select subselect */ + bool uncacheable; /* result of this query can't be cached */ bool no_table_names_allowed; /* used for global order by */ static void *operator new(size_t size) @@ -475,6 +476,13 @@ typedef struct st_lex CHARSET_INFO *charset; char *help_arg; bool tmp_table_used; + + inline void uncacheable() + { + safe_to_cache_query= 0; + current_select->uncacheable = + current_select->master_unit()->uncacheable= 1; + } } LEX; |