summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authordavi@buzz.(none) <>2008-02-21 23:58:45 -0200
committerdavi@buzz.(none) <>2008-02-21 23:58:45 -0200
commit236727788d4d4489463081ee30c754addca6552b (patch)
tree58f450f841c0d24e21d2151ec112ad90beec9818 /sql/sql_view.cc
parentd2bb9dd64fdf3efe7d270496900350ce4a514088 (diff)
downloadmariadb-git-236727788d4d4489463081ee30c754addca6552b.tar.gz
Post-merge fixes for bug 32890
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 92cf3529d2f..608c7a9eaa8 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -351,7 +351,7 @@ bool create_view_precheck(THD *thd, TABLE_LIST *tables, TABLE_LIST *view,
res= FALSE;
err:
- DBUG_RETURN(res || thd->net.report_error);
+ DBUG_RETURN(res || thd->is_error());
}
#else
@@ -397,7 +397,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
/* This is ensured in the parser. */
DBUG_ASSERT(!lex->proc_list.first && !lex->result &&
- !lex->param_list.elements && !lex->derived_tables);
+ !lex->param_list.elements);
if (mode != VIEW_CREATE_NEW)
{