1. 06 Sep, 2004 4 commits
    • unknown's avatar
      added CHECK option test for INSERT ... ON DUPLICATE KEY UPDATE (WL#1983) · 44ca1f80
      unknown authored
      
      mysql-test/r/view.result:
        CHECK OPTION with INSERT ... ON DUPLICATE KEY UPDATE
      mysql-test/t/view.test:
        CHECK OPTION with INSERT ... ON DUPLICATE KEY UPDATE
      sql/sql_class.h:
        new parameters added to save CHECK OPTION
        constructor moved
      sql/sql_insert.cc:
        new parameters added to save CHECK OPTION
        check of CHECK OPTION added
        constructor moved
      sql/sql_parse.cc:
        new parameters added to save CHECK OPTION
      44ca1f80
    • unknown's avatar
      merge · c05fbd4c
      unknown authored
      
      sql/sql_insert.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/share/czech/errmsg.txt:
        Auto merged
      sql/share/danish/errmsg.txt:
        Auto merged
      sql/share/dutch/errmsg.txt:
        Auto merged
      sql/share/english/errmsg.txt:
        Auto merged
      sql/share/estonian/errmsg.txt:
        Auto merged
      sql/share/french/errmsg.txt:
        Auto merged
      sql/share/german/errmsg.txt:
        Auto merged
      sql/share/greek/errmsg.txt:
        Auto merged
      sql/share/hungarian/errmsg.txt:
        Auto merged
      sql/share/italian/errmsg.txt:
        Auto merged
      sql/share/japanese/errmsg.txt:
        Auto merged
      sql/share/korean/errmsg.txt:
        Auto merged
      sql/share/norwegian-ny/errmsg.txt:
        Auto merged
      sql/share/norwegian/errmsg.txt:
        Auto merged
      sql/share/polish/errmsg.txt:
        Auto merged
      sql/share/portuguese/errmsg.txt:
        Auto merged
      sql/share/romanian/errmsg.txt:
        Auto merged
      sql/share/russian/errmsg.txt:
        Auto merged
      sql/share/serbian/errmsg.txt:
        Auto merged
      sql/share/slovak/errmsg.txt:
        Auto merged
      sql/share/spanish/errmsg.txt:
        Auto merged
      sql/share/swedish/errmsg.txt:
        Auto merged
      sql/share/ukrainian/errmsg.txt:
        Auto merged
      sql/table.h:
        Auto merged
      c05fbd4c
    • unknown's avatar
      do not use Item_ref for view fields if it is UPDATE of INSERT (BUG#5263) · 0a04f6b1
      unknown authored
      
      mysql-test/r/view.result:
        INSERT into VIEW with ON DUPLICATE
      mysql-test/t/view.test:
        INSERT into VIEW with ON DUPLICATE
      sql/sql_insert.cc:
        do not use Item_ref for view fields if it is UPDATE of INSERT
      0a04f6b1
    • unknown's avatar
      postmerge fix · c751fdd9
      unknown authored
      c751fdd9
  2. 05 Sep, 2004 1 commit
    • unknown's avatar
      merge · 981b3d0e
      unknown authored
      
      mysql-test/r/view.result:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.h:
        Auto merged
      981b3d0e
  3. 04 Sep, 2004 3 commits
    • unknown's avatar
      memory leaks fixed · d7d2712f
      unknown authored
      
      sql/sql_derived.cc:
        memory leak fixed
      sql/sql_view.cc:
        memory leak fixed
      d7d2712f
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · d75ea9bc
      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
      d75ea9bc
    • unknown's avatar
      Print value of Item_param if it has a value (when debugging) · fa3bfbe4
      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
      fa3bfbe4
  4. 03 Sep, 2004 4 commits
    • unknown's avatar
      Merge with pulled code · 99be6d30
      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
      99be6d30
    • unknown's avatar
      Cleanup of new code pushed into 5.0 since last pull · d0211cf5
      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
      d0211cf5
    • unknown's avatar
      ufter review fix · 1948909a
      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
      1948909a
    • unknown's avatar
      CHECK OPTIONs added (WL#1983) · 704fb6da
      unknown authored
      
      include/mysqld_error.h:
        new error messages
      mysql-test/r/view.result:
        test of CHECK OPTION in a views
      mysql-test/t/view.test:
        test of CHECK OPTION in a views
      sql/share/czech/errmsg.txt:
        new error messages
      sql/share/danish/errmsg.txt:
        new error messages
      sql/share/dutch/errmsg.txt:
        new error messages
      sql/share/english/errmsg.txt:
        new error messages
      sql/share/estonian/errmsg.txt:
        new error messages
      sql/share/french/errmsg.txt:
        new error messages
      sql/share/german/errmsg.txt:
        new error messages
      sql/share/greek/errmsg.txt:
        new error messages
      sql/share/hungarian/errmsg.txt:
        new error messages
      sql/share/italian/errmsg.txt:
        new error messages
      sql/share/japanese/errmsg.txt:
        new error messages
      sql/share/korean/errmsg.txt:
        new error messages
      sql/share/norwegian-ny/errmsg.txt:
        new error messages
      sql/share/norwegian/errmsg.txt:
        new error messages
      sql/share/polish/errmsg.txt:
        new error messages
      sql/share/portuguese/errmsg.txt:
        new error messages
      sql/share/romanian/errmsg.txt:
        new error messages
      sql/share/russian/errmsg.txt:
        new error messages
      sql/share/serbian/errmsg.txt:
        new error messages
      sql/share/slovak/errmsg.txt:
        new error messages
      sql/share/spanish/errmsg.txt:
        new error messages
      sql/share/swedish/errmsg.txt:
        new error messages
      sql/share/ukrainian/errmsg.txt:
        new error messages
      sql/sql_insert.cc:
        CHECK OPTIONs added
      sql/sql_lex.h:
        CHECK OPTIONs added
      sql/sql_update.cc:
        CHECK OPTIONs added
      sql/sql_view.cc:
        new parameter added
        returnrd values fixed
      sql/sql_yacc.yy:
        CHECK OPTIONs added
      sql/table.cc:
        CHECK OPTIONs added
      sql/table.h:
        CHECK OPTIONs added
      704fb6da
  5. 02 Sep, 2004 5 commits
    • unknown's avatar
      Fixed BUG#5307: Stored procedure allows statement after BEGIN ... END. · 2c3f49a6
      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.
      2c3f49a6
    • unknown's avatar
      Fixed BUG#5287: Stored procedure crash if leave outside loop. · 339859d2
      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.
      339859d2
    • unknown's avatar
      checked INTO clause during view creation (BUG#5332) · 5feaa7b6
      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
      5feaa7b6
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 55b806b5
      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
      55b806b5
    • unknown's avatar
      fixed bug handling in views (BUG#5276) · 1bbf7184
      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
      1bbf7184
  6. 01 Sep, 2004 5 commits
  7. 31 Aug, 2004 2 commits
    • unknown's avatar
      ORDER clause printing fixed (BUG#5156) · d3423ca6
      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
      d3423ca6
    • unknown's avatar
      fixed open_and_lock_tables result processing (all open_and_lock_tables revision) · 6e314e04
      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
      6e314e04
  8. 30 Aug, 2004 6 commits
  9. 28 Aug, 2004 1 commit
    • unknown's avatar
      Microsoft VC++ won't compile class C { static const int I=1; }. · ca37e1c3
      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.
      ca37e1c3
  10. 27 Aug, 2004 2 commits
  11. 26 Aug, 2004 5 commits
    • unknown's avatar
      Item name for VIEW added to find_field_in_table (BUG#5147) · 7a6f5cf1
      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
      7a6f5cf1
    • unknown's avatar
      fixed updateability VIEW detection (Bug#5146) · 3b8c2da8
      unknown authored
      fixed other Item_ref methods where result_field involved
      
      
      mysql-test/r/view.result:
        statements added to distinct in temporary table with a VIEW test
        test of agggregate over aggregate with view
      mysql-test/t/view.test:
        statements added to distinct in temporary table with a VIEW test
        test of agggregate over aggregate with view
      sql/item.cc:
        fixed other Item_ref methods where result_field involved
      sql/item.h:
        fixed other Item_ref methods where result_field involved
      sql/sql_lex.cc:
        fixed updateability VIEW detection
      3b8c2da8
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 8fa394da
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0-merge
      
      
      8fa394da
    • unknown's avatar
      Major rehacking and cleanup of sp_pcontext. · 071651ef
      unknown authored
      This finishes (almost) WL#2002: Implement stored procedure GOTO.
      Only the syntax issue for free labels remains ("label L;" vs "L:").
      
      
      include/mysqld_error.h:
        New error code for GOTO in SP handler.
      mysql-test/r/sp-error.result:
        New error test cases for GOTO.
      mysql-test/r/sp.result:
        New test cases for GOTO.
        Also removed some things that made it impossible to run the test in
        an external (debugged) mysqld.
      mysql-test/t/sp-error.test:
        New error test cases for GOTO.
      mysql-test/t/sp.test:
        New test cases for GOTO.
        Also removed some things that made it impossible to run the test in
        an external (debugged) mysqld.
      sql/share/czech/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/danish/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/dutch/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/english/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/estonian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/french/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/german/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/greek/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/hungarian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/italian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/japanese/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/korean/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/norwegian-ny/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/norwegian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/polish/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/portuguese/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/romanian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/russian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/serbian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/slovak/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/spanish/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/swedish/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/share/ukrainian/errmsg.txt:
        New error message for GOTO in SP handler.
      sql/sp_head.cc:
        Code cleanup (renaming of pcontext methods), support goto, and fixed bug
        in jump shortcutting in the optimizer (detect infinite loops).
      sql/sp_head.h:
        Code cleanup (renaming of pcontext methods), support goto, and fixed bug
        in jump shortcutting in the optimizer (detect infinite loops).
      sql/sp_pcontext.cc:
        Major rehack and cleanup:
        - We now push and pop a chain of contexts during parsing (instead of having
          a single one).
        - Makes error detection for GOTO easier and enables some optmizations and
          debugger support.
        - Makes it a little trickier to keep track on variable and cursor indexes instead.
        - Renamed things to get a more consistent naming scheme too.
      sql/sp_pcontext.h:
        Major rehack and cleanup:
        - We now push and pop a chain of contexts during parsing (instead of having
          a single one).
        - Makes error detection for GOTO easier and enables some optmizations and
          debugger support.
        - Makes it a little trickier to keep track on variable and cursor indexes instead.
        - Renamed things to get a more consistent naming scheme too.
      sql/sql_yacc.yy:
        Changes to reflect the rework and renamings in sp_pcontext, and fixed
        some GOTO error checking.
      071651ef
    • unknown's avatar
      fix of Item_ref with result_field (BUG#5104) · ac0d94a9
      unknown authored
      
      mysql-test/r/view.result:
        distinct in temporary table with a VIEW
      mysql-test/t/view.test:
        distinct in temporary table with a VIEW
      sql/item.cc:
        fix of Item_ref with result_field
      sql/item.h:
        fix of Item_ref with result_field
      ac0d94a9
  12. 25 Aug, 2004 2 commits
    • unknown's avatar
      full text function moving to current select (BUG#4822) · 7bba8128
      unknown authored
      
      mysql-test/r/view.result:
        VIEW with full text
      mysql-test/t/view.test:
        VIEW with full text
      sql/table.cc:
        full text function moving to current select
      7bba8128
    • unknown's avatar
      removing archive of .frm-s added (BUG#4821) · 29c44654
      unknown authored
      
      mysql-test/r/view.result:
        Removing database with .frm archives
      mysql-test/t/view.test:
        Removing database with .frm archives
      sql/parse_file.cc:
        fixed revision number printing
      sql/sql_db.cc:
        removing archive of .frm-s added
      29c44654