1. 08 Sep, 2004 2 commits
    • unknown's avatar
      WL#1218 "Triggers" · ccbcf94d
      unknown authored
      After review and after merge fixes.
      
      
      mysql-test/t/trigger.test:
        After merge fix. Updated error codes.
      sql/sp_head.cc:
        After merge fix.
        To give some chances for functions/triggers we have to close tables during sp_instr_* 
        execution only if we have opened them before.
      sql/sp_head.h:
        After merge fix. sp_instr constructor now takes one more argument.
      sql/sql_trigger.cc:
        After merge and review fixes.
        Some variable renaming and optimizations.
      sql/sql_yacc.yy:
        After merge fixes.
        sp_instr_* classes now require sp context as constructor parameter.
        Also we should be careful with adding table for which we are creating trigger to table 
        list. Some elements in trigger body can damage LEX::query_tables and so we should add this
        table to list only after parsing trigger body.
      ccbcf94d
    • unknown's avatar
      Merge of changes from the main tree to tree for WL#1218 "Triggers". · c7fdd679
      unknown authored
      
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/lex.h:
        Auto merged
      sql/parse_file.cc:
        Auto merged
      sql/sp_head.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_delete.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.h:
        Auto merged
      include/mysqld_error.h:
        Manual merge.
      sql/mysql_priv.h:
        Manual merge.
      sql/share/czech/errmsg.txt:
        Manual merge.
      sql/share/danish/errmsg.txt:
        Manual merge.
      sql/share/dutch/errmsg.txt:
        Manual merge.
      sql/share/english/errmsg.txt:
        Manual merge.
      sql/share/estonian/errmsg.txt:
        Manual merge.
      sql/share/french/errmsg.txt:
        Manual merge.
      sql/share/german/errmsg.txt:
        Manual merge.
      sql/share/greek/errmsg.txt:
        Manual merge.
      sql/share/hungarian/errmsg.txt:
        Manual merge.
      sql/share/italian/errmsg.txt:
        Manual merge.
      sql/share/japanese/errmsg.txt:
        Manual merge.
      sql/share/korean/errmsg.txt:
        Manual merge.
      sql/share/norwegian-ny/errmsg.txt:
        Manual merge.
      sql/share/norwegian/errmsg.txt:
        Manual merge.
      sql/share/polish/errmsg.txt:
        Manual merge.
      sql/share/portuguese/errmsg.txt:
        Manual merge.
      sql/share/romanian/errmsg.txt:
        Manual merge.
      sql/share/russian/errmsg.txt:
        Manual merge.
      sql/share/serbian/errmsg.txt:
        Manual merge.
      sql/share/slovak/errmsg.txt:
        Manual merge.
      sql/share/spanish/errmsg.txt:
        Manual merge.
      sql/share/swedish/errmsg.txt:
        Manual merge.
      sql/share/ukrainian/errmsg.txt:
        Manual merge.
      sql/sp_head.cc:
        Manual merge.
      c7fdd679
  2. 07 Sep, 2004 2 commits
    • unknown's avatar
      Fixed typo that showed up in non-debug build (in sql/sql_show.cc). · 913c09a1
      unknown authored
      
      sql/sql_show.cc:
        Fixed typo that showed up in non-debug build.
      913c09a1
    • unknown's avatar
      WL#1218 "Triggers". Some very preliminary version of patch. · 960c429d
      unknown authored
      Mostly needed for Monty for him getting notion what needed for triggers 
      from new .FRM format. 
      
      Things to be done:
      - Right placement of trigger's invocations
      - Right handling of errors in triggers (including transaction rollback)
      - Support for priviliges
      - Right handling of DROP/RENAME table (hope that it will be handled automatically
        with merging of .TRG into .FRM file)
      - Saving/restoring some information critical for trigger creation and replication
        with their definitions (e.g. sql_mode, creator, ...)
      - Replication
      
      Already has some known bugs so probably not for general review.
      
      
      include/mysqld_error.h:
        Added trigger related error codes.
      sql/Makefile.am:
        Added sql_trigger.* files to list of sources from which mysqld is built.
      sql/item.cc:
        Added Item_trigger_field class representing field of new/old version of row which is 
        inserted/updated/deleted and for which trigger is invoked.
      sql/item.h:
        Added enums for describing trigger properties. (Here because of dependencies).
        Added Item_trigger_field class representing field of new/old version of row which is 
        inserted/updated/deleted and for which trigger is invoked.
      sql/item_func.cc:
        Added Item_func_set_user_var::print_as_stmt() for printing of assignment to ser variable
        from stored procedures.
        Added comment clarifying why we don't need set no_send_ok when calling stored functions.
      sql/item_func.h:
        Added Item_func_set_user_var::print_as_stmt() for printing of assignment to ser variable
        from stored procedures.
      sql/lex.h:
        Symbols used in statements defining triggers were added.
      sql/mysql_priv.h:
        Exported some functions needed for triggers implementation.
      sql/parse_file.cc:
        Cleaned up FILE_OPTIONS_STRLIST handling (needed for triggers).
      sql/parse_file.h:
        Cleaned up FILE_OPTIONS_STRLIST handling (needed for triggers).
      sql/share/czech/errmsg.txt:
        Added trigger related error messages.
      sql/share/danish/errmsg.txt:
        Added trigger related error messages.
      sql/share/dutch/errmsg.txt:
        Added trigger related error messages.
      sql/share/english/errmsg.txt:
        Added trigger related error messages.
      sql/share/estonian/errmsg.txt:
        Added trigger related error messages.
      sql/share/french/errmsg.txt:
        Added trigger related error messages.
      sql/share/german/errmsg.txt:
        Added trigger related error messages.
      sql/share/greek/errmsg.txt:
        Added trigger related error messages.
      sql/share/hungarian/errmsg.txt:
        Added trigger related error messages.
      sql/share/italian/errmsg.txt:
        Added trigger related error messages.
      sql/share/japanese/errmsg.txt:
        Added trigger related error messages.
      sql/share/korean/errmsg.txt:
        Added trigger related error messages.
      sql/share/norwegian-ny/errmsg.txt:
        Added trigger related error messages.
      sql/share/norwegian/errmsg.txt:
        Added trigger related error messages.
      sql/share/polish/errmsg.txt:
        Added trigger related error messages.
      sql/share/portuguese/errmsg.txt:
        Added trigger related error messages.
      sql/share/romanian/errmsg.txt:
        Added trigger related error messages.
      sql/share/russian/errmsg.txt:
        Added trigger related error messages.
      sql/share/serbian/errmsg.txt:
        Added trigger related error messages.
      sql/share/slovak/errmsg.txt:
        Added trigger related error messages.
      sql/share/spanish/errmsg.txt:
        Added trigger related error messages.
      sql/share/swedish/errmsg.txt:
        Added trigger related error messages.
      sql/share/ukrainian/errmsg.txt:
        Added trigger related error messages.
      sql/sp_head.cc:
        sp_head::init_strings(): added support for triggers 
          (we don't have most of strings for them)
        sp_head::execute_function(): triggers don't require RETURN
        sp_head::reset_lex(): added propagation of trigger properties to LEX used for 
         parsing of statements composing trigger body.
        Added two more SP instructions:
        - sp_instr_set_user_var for setting user variables in stored functions and triggers
          (we can't use sp_instr_stmt and "SET @A:=..." statement since it will close open 
          tables and thus break execution of calling statement.
        - sp_instr_set_trigger_field for assignment to fields of row being updated/inserted in
          triggers
      sql/sp_head.h:
        Added new type of sp_head object - TYPE_ENUM_TRIGGER
        Added two more SP instructions:
        - sp_instr_set_user_var for setting user variables in stored functions and triggers
          (we can't use sp_instr_stmt and "SET @A:=..." statement since it will close open 
          tables and thus break execution of calling statement.
        - sp_instr_set_trigger_field for assignment to fields of row being updated/inserted in
          triggers
      sql/sql_base.cc:
        Now freeing memory occupied by trigger related structures when closing tables.
        open_unireg_entry(): added loading of triggers for table.
        find_field_in_real_table() is now public since it required by Item_trigger_field in item.cc
      sql/sql_delete.cc:
        Added triggers invocation for DELETE (should be fixed for sure :))
      sql/sql_insert.cc:
        Added triggers invocation for INSERT (should be fixed for sure :))
      sql/sql_lex.cc:
        Added trg_new_row_fake_var variable pointer to which is used for distinguishing between
        assignment to NEW row field (when parsing trigger definition) and structured variable.
        Added initialization of LEX->trg_table to lex_start(). (When triggers are parsed during
        opening of table it points to table object.)
      sql/sql_lex.h:
        Added trigger related commands.
        Added st_trg_chistics structure describing properties of trigger being created
        (as struct and as LEX member).
        Added trg_new_row_fake_var variable pointer to which is used for
        distinguishing between assignment to NEW row field (when parsing trigger definition)
        and structured variable.
        Added LEX::trg_table which points to table being opened when we are parsing trigger
        definition while opening table.
      sql/sql_parse.cc:
        Added support for CREATE/DROP TRIGGER commands.
      sql/sql_table.cc:
        Cleanup. close_cached_table() always returns 0 and its result is not analyzed in most
        places so chenged its return type to void.
      sql/sql_update.cc:
        Added triggers invocation for UPDATE (should be fixed for sure :))
      sql/sql_yacc.yy:
        Added support for CREATE/DROP TRIGGER statements.
        Added support for OLD/NEW row identifiers in trigger.
        Made assignment to user variables not to break execution of stored function or trigger.
      sql/table.h:
        Added TABLE::triggers member representing triggers for this table.
      960c429d
  3. 06 Sep, 2004 5 commits
  4. 05 Sep, 2004 2 commits
  5. 04 Sep, 2004 3 commits
    • unknown's avatar
      memory leaks fixed · 2452489c
      unknown authored
      
      sql/sql_derived.cc:
        memory leak fixed
      sql/sql_view.cc:
        memory leak fixed
      2452489c
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 64c00385
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-5.0
      
      
      mysql-test/r/view.result:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_delete.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/table.h:
        Auto merged
      64c00385
    • unknown's avatar
      Print value of Item_param if it has a value (when debugging) · 7e49a21c
      unknown authored
      
      libmysql/libmysql.c:
        More debug
      sql/item.h:
        Print value of param if it has a value (when debugging)
      sql/log.cc:
        Better variable name
      sql/sql_insert.cc:
        Fix bug casused by merge
      sql/sql_parse.cc:
        Added missing command names (caused crash when running with --debug)
      sql/sql_select.cc:
        More debugging
      sql/sql_yacc.yy:
        Fixed typo
      tests/client_test.c:
        More debugging
      7e49a21c
  6. 03 Sep, 2004 3 commits
    • unknown's avatar
      Merge with pulled code · 22aa4739
      unknown authored
      
      mysql-test/r/view.result:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      sql/item_subselect.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/table.h:
        Auto merged
      tests/client_test.c:
        Auto merged
      sql/sql_base.cc:
        Merge
      sql/sql_insert.cc:
        Merge
      sql/sql_select.cc:
        Merge
      sql/sql_view.cc:
        Merge
      sql/table.cc:
        Merge
      22aa4739
    • unknown's avatar
      Cleanup of new code pushed into 5.0 since last pull · 4f219919
      unknown authored
      Merged the different find_xxxx_table_in_list functions to one + some inline functions
      
      
      mysql-test/r/view.result:
        Fix result (remove not used view from show tables)
      sql/item_subselect.cc:
        Remove not used functions
      sql/item_subselect.h:
        Remove not used functions
      sql/mysql_priv.h:
        Merged the different find_xxxx_table_in_list functions to one + some inline functions
      sql/sql_acl.cc:
        More debugging + simple cleanups
      sql/sql_base.cc:
        Merged the different find_xxxx_table_in_list functions to one + some inline functions
        Indentation cleanups & more comments
      sql/sql_delete.cc:
        Namechange
      sql/sql_insert.cc:
        Simple optimizations & Style cleanups
        Merged common code (in mysql_prepare_insert_check_table)
      sql/sql_lex.cc:
        function name changes
        More comments
      sql/sql_parse.cc:
        Function name changes
        Made check_one_table_access returning bool
        More debugging in 'check_access'
        Added function 'check_some_access', which is used when creating a view
      sql/sql_prepare.cc:
        Resetting flag directly after test makes code easier to read
      sql/sql_select.cc:
        Code simplifications
      sql/sql_show.cc:
        Indentation cleanups.
        Fixed typo in name
      sql/sql_update.cc:
        Function name change
      sql/sql_view.cc:
        Simple optimizations.
        Style fixes.
        Remove view_field_names[]
        Simplified 'check_key_in_view()'
      sql/table.cc:
        Simplified new code in openfrm()
        variable name change i -> item
        Indentation changes
      sql/table.h:
        Fixed typo in variable name
        Method name change in field iterator: end() -> end_of_fields()
      tests/client_test.c:
        Changed number to macro
      4f219919
    • unknown's avatar
      ufter review fix · f5485925
      unknown authored
      
      sql/sql_view.cc:
        name of variable changed to make merge easy
        removed charset field
      sql/table.h:
        removed charset field
        layout fixed
      f5485925
  7. 02 Sep, 2004 5 commits
    • unknown's avatar
      Fixed BUG#5307: Stored procedure allows statement after BEGIN ... END. · 4a795f11
      unknown authored
      
      mysql-test/r/sp.result:
        New test case for BUG#5307
      mysql-test/t/sp.test:
        New test case for BUG#5307
      sql/sp_head.cc:
        Use the correct end-of-query pointer when extracting the body in the case
        of a create procedure compound with another statement.
      4a795f11
    • unknown's avatar
      Fixed BUG#5287: Stored procedure crash if leave outside loop. · a8c27b03
      unknown authored
      Bug in diff_handlers and diff_cursors made it attempt to pop
      the wrong number at jumps sometimes.
      
      
      mysql-test/r/sp.result:
        New testcase for BUG#5287.
      mysql-test/t/sp.test:
        New testcase for BUG#5287.
      sql/sp_pcontext.cc:
        Fixed diff_handlers and diff_cursors methods, they miscounted.
      sql/sp_pcontext.h:
        Made m_handlers available for diff_handlers.
      a8c27b03
    • unknown's avatar
      checked INTO clause during view creation (BUG#5332) · 5505c3e2
      unknown authored
      
      include/mysqld_error.h:
        bug name and number of bugs fixed
      mysql-test/r/view.result:
        VIEW over SELECT with prohibited clauses
      mysql-test/t/view.test:
        VIEW over SELECT with prohibited clauses
      sql/share/czech/errmsg.txt:
        error message made more general
      sql/share/danish/errmsg.txt:
        error message made more general
      sql/share/dutch/errmsg.txt:
        error message made more general
      sql/share/english/errmsg.txt:
        error message made more general
      sql/share/estonian/errmsg.txt:
        error message made more general
      sql/share/french/errmsg.txt:
        error message made more general
      sql/share/german/errmsg.txt:
        error message made more general
      sql/share/greek/errmsg.txt:
        error message made more general
      sql/share/hungarian/errmsg.txt:
        error message made more general
      sql/share/italian/errmsg.txt:
        error message made more general
      sql/share/japanese/errmsg.txt:
        error message made more general
      sql/share/korean/errmsg.txt:
        error message made more general
      sql/share/norwegian-ny/errmsg.txt:
        error message made more general
      sql/share/norwegian/errmsg.txt:
        error message made more general
      sql/share/polish/errmsg.txt:
        error message made more general
      sql/share/portuguese/errmsg.txt:
        error message made more general
      sql/share/romanian/errmsg.txt:
        error message made more general
      sql/share/russian/errmsg.txt:
        error message made more general
      sql/share/serbian/errmsg.txt:
        error message made more general
      sql/share/slovak/errmsg.txt:
        error message made more general
      sql/share/spanish/errmsg.txt:
        error message made more general
      sql/share/swedish/errmsg.txt:
        error message made more general
      sql/share/ukrainian/errmsg.txt:
        error message made more general
      sql/sql_view.cc:
        checked INTO clause during view creation
      5505c3e2
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 4f94380a
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-5.0
      
      
      sql/item.cc:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      4f94380a
    • unknown's avatar
      fixed bug handling in views (BUG#5276) · be4cc16d
      unknown authored
      
      mysql-test/r/view.result:
        bug handlimg from VIEWs
      mysql-test/t/view.test:
        bug handlimg from VIEWs
      sql/sql_base.cc:
        fixed bug handling in views
      be4cc16d
  8. 01 Sep, 2004 5 commits
  9. 31 Aug, 2004 2 commits
    • unknown's avatar
      ORDER clause printing fixed (BUG#5156) · faf2e53e
      unknown authored
      
      mysql-test/r/subselect.result:
        ORDER clause printing fixed
      mysql-test/r/view.result:
        order by refers on integer field
      mysql-test/t/view.test:
        order by refers on integer field
      sql/sql_lex.cc:
        ORDER clause printing fixed
      sql/sql_parse.cc:
        fields for correct ORDER printing added
      sql/sql_select.cc:
        fields for correct ORDER printing added
      sql/table.h:
        fields for correct ORDER printing added
      faf2e53e
    • unknown's avatar
      fixed open_and_lock_tables result processing (all open_and_lock_tables revision) · a64a5637
      unknown authored
      fixed printing of COLLATE operation
      (BUG#5155)
      
      
      mysql-test/r/case.result:
        fixed printing of COLLATE operation
      mysql-test/r/func_if.result:
        fixed printing of COLLATE operation
      mysql-test/r/func_in.result:
        fixed printing of COLLATE operation
      mysql-test/r/func_str.result:
        fixed printing of COLLATE operation
      mysql-test/r/func_test.result:
        fixed printing of COLLATE operation
      mysql-test/r/view.result:
        VIEW with collation
      mysql-test/t/view.test:
        VIEW with collation
      sql/item_strfunc.cc:
        fixed printing of COLLATE operation
      sql/item_strfunc.h:
        fixed printing of COLLATE operation
      sql/sp_head.cc:
        fixed open_and_lock_tables result processing
      sql/sql_base.cc:
        fixed open_and_lock_tables result processing
      sql/sql_delete.cc:
        fixed open_and_lock_tables result processing
      sql/sql_help.cc:
        fixed open_and_lock_tables result processing
      sql/sql_load.cc:
        fixed open_and_lock_tables result processing
      sql/sql_parse.cc:
        fixed open_and_lock_tables result processing
      sql/sql_prepare.cc:
        fixed open_and_lock_tables result processing
      sql/sql_show.cc:
        fixed open_and_lock_tables result processing
      sql/sql_update.cc:
        fixed open_and_lock_tables result processing
      a64a5637
  10. 30 Aug, 2004 7 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 0c952b55
      unknown authored
      into pcgem.rdg.cyberkinetica.com:/usr/home/acurtis/work/mysql-5.0
      
      
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      0c952b55
    • unknown's avatar
      Fix column name where it starts with a backtick · cf2ec259
      unknown authored
      
      mysql-test/r/sp.result:
        test for backticks
      mysql-test/t/sp.test:
        test for backticks
      cf2ec259
    • unknown's avatar
      fixed case when real length very close to calculated (BUG#5150) · 2aa6ddca
      unknown authored
      
      mysql-test/r/view.result:
        tested problem when function name length close to ALIGN_SIZE
      mysql-test/t/view.test:
        tested problem when function name length close to ALIGN_SIZE
      sql/item_func.cc:
        fixed case when real length very close to calculated (less then ALIGN)
      2aa6ddca
    • unknown's avatar
      fixed printing of stored procedure functions names (BUG#5149) · 247c824e
      unknown authored
      
      mysql-test/r/view.result:
        VIEW based on functions with  complex names
      mysql-test/t/view.test:
        VIEW based on functions with  complex names
      sql/item_func.cc:
        fixed printing of stored procedure functions names
      247c824e
    • unknown's avatar
      Please rewiev. Here added a function to process config. files options. · 8e2f1a1d
      unknown authored
      A lot of the default.c module code was refactored. The patch is needed
      for the IM.
      
      
      include/my_sys.h:
        Definitions added.
      mysys/default.c:
        Added new api call: process_default_option_files. Also some coments
        changed to reflect current state of the code. It takes Basename for
        config file and the function to process options. The function is called
        everytime when we find an option. This way it is possible to get and
        process options from several groups in one file traversal.
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      8e2f1a1d
    • unknown's avatar
      Fixed BUG#5279: Stored procedure packets out of order if CHECKSUM TABLE. · dbbfb6a2
      unknown authored
      
      mysql-test/r/sp.result:
        New testcase for BUG#5251.
      mysql-test/t/sp.test:
        New testcase for BUG#5251.
      sql/sp_head.cc:
        Added checksum to the list of statements that return result sets.
      dbbfb6a2
    • unknown's avatar
      Fixed return type warning in sql/item.cc. · 9aaf828d
      unknown authored
      
      sql/item.cc:
        Fixed return type warning.
      9aaf828d
  11. 28 Aug, 2004 1 commit
    • unknown's avatar
      Microsoft VC++ won't compile class C { static const int I=1; }. · cddb6522
      unknown authored
      Putting initialization into .cc will reduce compiler's abilities
      to optimize this constant away.
      Defines are not OK as they bloat global namespace.
      Looking for a way to declare an efficient named constant in reduced
      namespace (i. e. in  a class).
      Let's try enums: normally they should be implicitly casted to int.
      Let's see if we really have a compiler which won't do that.
      
      
      
      
      libmysqld/lib_sql.cc:
        Added explicit cast to int for Protocol::{SEND_DEFAULTS,SEND_NUM_ROWS,
        SEND_EOF}
        flags argument of send_fields() is now int.
      sql/protocol.cc:
        flags argument of send_fields is now int.
      sql/protocol.h:
        Catch22: Microsoft VC++ won't compile 
        class C { static const int I=1; }.
        Putting initialization into .cc will reduce compiler's abilities
        to optimize this constant away.
        Defines are not OK as they bloat global namespace.
        Looking for a way to declare an efficient named constant in reduced
        namespace (i. e. in  a class).
        Let's try enums: normally they should be implicitly casted to int.
        Let's see if we really have a compiler which won't do that.
      sql/protocol_cursor.cc:
        flags are now int.
      cddb6522
  12. 27 Aug, 2004 2 commits
  13. 26 Aug, 2004 1 commit
    • unknown's avatar
      Item name for VIEW added to find_field_in_table (BUG#5147) · 8048c282
      unknown authored
      
      mysql-test/r/view.result:
        VIEW of VIEW with column renaming
      mysql-test/t/view.test:
        VIEW of VIEW with column renaming
      sql/mysql_priv.h:
        Item name for VIEW added to find_field_in_table
      sql/sql_acl.cc:
        new parameter
      sql/sql_base.cc:
        Item name for VIEW added to find_field_in_table
      8048c282