mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Bug#17203: "sql_no_cache sql_cache" in views created from prepared statement
The problem was that we restored SQL_CACHE, SQL_NO_CACHE flags in SELECT statement from internal structures based on value set later at runtime, not the original value set by the user. The solution is to remember that original value.
This commit is contained in:
@@ -311,6 +311,14 @@ protected:
|
||||
public:
|
||||
|
||||
ulonglong options;
|
||||
|
||||
/*
|
||||
In sql_cache we store SQL_CACHE flag as specified by user to be
|
||||
able to restore SELECT statement from internal structures.
|
||||
*/
|
||||
enum e_sql_cache { SQL_CACHE_UNSPECIFIED, SQL_NO_CACHE, SQL_CACHE };
|
||||
e_sql_cache sql_cache;
|
||||
|
||||
/*
|
||||
result of this query can't be cached, bit field, can be :
|
||||
UNCACHEABLE_DEPENDENT
|
||||
|
||||
Reference in New Issue
Block a user