summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-08-06 15:50:22 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2018-08-08 19:44:04 +0200
commit017adbeb3940ac162dcb8dd99478375a37edec02 (patch)
tree2da9e7ce4d4c02d8106c395ee2b48881101035cf /sql/sql_show.cc
parent68ebfb31f215247d2fa08c8ed97a320191afc179 (diff)
downloadmariadb-git-bb-5.5-MDEV-15475.tar.gz
MDEV-15475: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed on EXPLAIN EXTENDED with constant table and viewbb-5.5-MDEV-15475
Print constant ISNULL fireld independent. Fix of printing of view FRM and CREATE VIEW output
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 06d5a6f570a..db33a9de781 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -2085,7 +2085,7 @@ view_store_create_info(THD *thd, TABLE_LIST *table, String *buff)
We can't just use table->query, because our SQL_MODE may trigger
a different syntax, like when ANSI_QUOTES is defined.
*/
- table->view->unit.print(buff, QT_ORDINARY);
+ table->view->unit.print(buff, QT_VIEW_INTERNAL);
if (table->with_check != VIEW_CHECK_NONE)
{