summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index b1cc696e9fe..b4d91b050bc 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -6867,6 +6867,10 @@ static int get_schema_views_record(THD *thd, TABLE_LIST *tables,
table->field[10]->store(view_algorithm(tables), cs);
+ if (tables->allowed_show)
+ table->field[11]->store(tables->source.str, tables->source.length,
+ tables->view_creation_ctx->get_client_cs());
+
if (schema_table_store_record(thd, table))
DBUG_RETURN(1);
if (unlikely(res && thd->is_error()))
@@ -9125,6 +9129,7 @@ ST_FIELD_INFO view_fields_info[]=
Column("CHARACTER_SET_CLIENT", CSName(), NOT_NULL, OPEN_FRM_ONLY),
Column("COLLATION_CONNECTION", CSName(), NOT_NULL, OPEN_FRM_ONLY),
Column("ALGORITHM", Varchar(10),NOT_NULL, OPEN_FRM_ONLY),
+ Column("SOURCE", Longtext(65535), NOT_NULL, OPEN_FRM_ONLY),
CEnd()
};