summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-07-16 23:44:14 +0300
committerunknown <bell@sanja.is.com.ua>2004-07-16 23:44:14 +0300
commit331b30124dacedf5ea65bcc2124c56e0e00e371d (patch)
tree3f3ed462bdfd6e624ae4b8e4d0933fb10ca2fe6f
parentffe0a9651af66fc5b72113f72b5aee530ab658fd (diff)
downloadmariadb-git-331b30124dacedf5ea65bcc2124c56e0e00e371d.tar.gz
satisfy VC++
-rw-r--r--sql/sql_view.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 8d8e3d1d527..5a16f0ff3fc 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -53,6 +53,7 @@ int mysql_create_view(THD *thd,
/* first table in list is target VIEW name => cut off it */
TABLE_LIST *view= lex->unlink_first_table(&link_to_local);
TABLE_LIST *tables= lex->query_tables;
+ TABLE_LIST *tbl;
SELECT_LEX *select_lex= &lex->select_lex;
SELECT_LEX_UNIT *unit= &lex->unit;
int res= 0;
@@ -73,7 +74,7 @@ int mysql_create_view(THD *thd,
0, 0) ||
grant_option && check_grant(thd, CREATE_VIEW_ACL, view, 0, 1, 0))
DBUG_RETURN(1);
- for (TABLE_LIST *tbl= tables; tbl; tbl= tbl->next_local)
+ for (tbl= tables; tbl; tbl= tbl->next_local)
{
/*
Ensure that we have some privilage on this table, more strict check
@@ -128,7 +129,7 @@ int mysql_create_view(THD *thd,
if (&lex->select_lex != lex->all_selects_list)
{
/* check tables of subqueries */
- for (TABLE_LIST *tbl= tables; tbl; tbl= tbl->next_global)
+ for (tbl= tables; tbl; tbl= tbl->next_global)
{
if (!tbl->table_in_first_from_clause)
{
@@ -163,7 +164,7 @@ int mysql_create_view(THD *thd,
DBUG_RETURN(res);
/* check that tables are not temporary */
- for (TABLE_LIST *tbl= tables; tbl; tbl= tbl->next_global)
+ for (tbl= tables; tbl; tbl= tbl->next_global)
{
if (tbl->table->tmp_table != NO_TMP_TABLE && !test(tbl->view))
{
@@ -492,7 +493,7 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
}
TABLE_LIST *old_next, *tbl_end, *tbl_next;
- SELECT_LEX *end, *next;
+ SELECT_LEX *end;
THD *thd= current_thd;
LEX *old_lex= thd->lex, *lex;
int res= 0;