diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-11-13 10:10:09 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-11-13 10:10:09 +0100 |
commit | 5e63f616a7ed511e6e69581f6659f60f1ec8633b (patch) | |
tree | 5939124c3b798374f9c76f022206ca66d3f4034a /sql/parse_file.h | |
parent | 1368a63589d0b4900f7d7efb57444c4ea34e6c26 (diff) | |
download | mariadb-git-bb-10.1-MDEV-17124.tar.gz |
MDEV-17124: mariadb 10.1.34, views and prepared statements: ERROR 1615 (HY000): Prepared statement needs to be re-preparedbb-10.1-MDEV-17124
The problem is that if table definition cache (TDC) is full of real tables which are in tables cache, view definition can not stay there so will me removed by its own underlying tables.
In situation above old mechanism of detection matching definition in PS and current version always require reprepare and so prevent executing the PS.
One work arount is to increase TDC, other - improve version check for views (which is done here).
Now in suspiciouse cases we check MD5 of the view to be sure that version really have chenged.
Diffstat (limited to 'sql/parse_file.h')
-rw-r--r-- | sql/parse_file.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/parse_file.h b/sql/parse_file.h index 87917dbd71b..28f4070b437 100644 --- a/sql/parse_file.h +++ b/sql/parse_file.h @@ -36,8 +36,10 @@ enum file_opt_type { allocated with length 20 (19+1) */ FILE_OPTIONS_STRLIST, /**< list of escaped strings (List<LEX_STRING>) */ - FILE_OPTIONS_ULLLIST /**< list of ulonglong values + FILE_OPTIONS_ULLLIST, /**< list of ulonglong values (List<ulonglong>) */ + + FILE_OPTIONS_FIXSTRING /**< fixed length String (LEX_STRING) */ }; struct File_option |