An error occurred fetching the project authors.
  1. 10 Oct, 2005 1 commit
    • evgen@moonbone.local's avatar
      Fix bug#13327 check_equality() wasn't checking view's fields · 65325ecb
      evgen@moonbone.local authored
      check_equality() finds equalities among field items. It checks input items
      to be Item_fields thus skipping view's fields, which are represented by
      Item_direct_view_ref. Because of this index wasn't applied in all cases
      it can be.
      
      To fix this problem check_equality() now takes real item of
      Item_direct_view_ref, except outer view refs (with depended_from set).
      65325ecb
  2. 01 Oct, 2005 1 commit
  3. 27 Sep, 2005 2 commits
    • igor@rurik.mysql.com's avatar
      item.cc: · 6e2fb27a
      igor@rurik.mysql.com authored
        Fixed bug #13410.
        Fixed name resolution for qualified reference to a view column
        in the HAVING clause.
      view.result, view.test:
        Added a test case for bug #13410.
      6e2fb27a
    • igor@rurik.mysql.com's avatar
      sql_base.cc, item.cc: · a43b341c
      igor@rurik.mysql.com authored
        Fixed bug #13411.
        Fixed name resolution for non-qualified reference to a view column
        in the HAVING clause.
      view.result, view.test:
        Added a test case for bug #13411.
      a43b341c
  4. 25 Sep, 2005 1 commit
  5. 16 Sep, 2005 1 commit
  6. 14 Sep, 2005 3 commits
  7. 12 Sep, 2005 1 commit
    • timour@mysql.com's avatar
      Fix for BUG#6808. · 9d862db7
      timour@mysql.com authored
      The problem was in that add_table_to_list was testing for duplicate tables
      in a list of tables that included the created view.
      9d862db7
  8. 11 Sep, 2005 1 commit
    • evgen@moonbone.local's avatar
      Fix bug #12993 View column rename broken in subselect · 75841099
      evgen@moonbone.local authored
      When view column aliased in subselect alias is set on ref which represents
      field. When tmp table is created for subselect, it takes name of original field
      not ref. Because of this alias on view column in subselect is lost. Which
      results in reported error.
      
      Now when alias is set on ref, it's set on ref real item too.
      75841099
  9. 07 Sep, 2005 2 commits
  10. 02 Sep, 2005 1 commit
  11. 01 Sep, 2005 1 commit
  12. 30 Aug, 2005 1 commit
  13. 25 Aug, 2005 1 commit
  14. 18 Aug, 2005 2 commits
    • igor@rurik.mysql.com's avatar
      Manual merge · 6fae8f6c
      igor@rurik.mysql.com authored
      6fae8f6c
    • igor@rurik.mysql.com's avatar
      view.test: · 5ac7d867
      igor@rurik.mysql.com authored
        Added a test case for bug #10970.
      view.result:
        Added a test case for bug #10970.
        Modified the error messages for error ER_VIEW_SELECT_TMPTABLE.
      sql_view.cc:
        Fixed bug #10970.
        In the function mysql_create_view if a view does not refer
        any tables directly the variable table must be updated
        after the call of open_and_lock_tables.
      errmsg.txt:
        Modified the error messages for error ER_VIEW_SELECT_TMPTABLE
        (when fixing bug #10970).
      5ac7d867
  15. 17 Aug, 2005 1 commit
    • bell@sanja.is.com.ua's avatar
      sql_view.cc: · 7f48830f
      bell@sanja.is.com.ua authored
        correct exit from mysql_create_view to restore ennvironment (BUG#12468)
      view.result, view.test:
        test of CRETE VIEW in SP
      7f48830f
  16. 15 Aug, 2005 1 commit
  17. 12 Aug, 2005 2 commits
    • evgen@moonbone.local's avatar
      Fix bug #12298 Typo in timestampdiff() function name results in erroneous · 0f9b9829
      evgen@moonbone.local authored
      view being created.
      
      Item_func_timestamp_diff::func_name() were returning function name as
      "timestamp_diff" thus when view was executed function parameters wasn't 
      properly recognized and error was raised.
      0f9b9829
    • igor@rurik.mysql.com's avatar
      sql_base.cc: · da441e94
      igor@rurik.mysql.com authored
        Fixed bug #12470.
        A misplaced initialization of the cond_count counter
        resulted in a wrong calculation of it. This caused a memory
        corruption since this counter was used as a parameter of
        some memory allocation.
      view.test:
        Added a test case for bug #12470.
      da441e94
  18. 11 Aug, 2005 1 commit
    • igor@rurik.mysql.com's avatar
      sql_base.cc: · 0aff8a13
      igor@rurik.mysql.com authored
        Fixed bug #12382.
        INSERT statement effectively changed thd->set_query_id to 0,
        while SELECT statement changed it to 0. As a result
        the insert_fields function that expanded '*' was called
        with different values of thd->set_query_id for the query
        SELECT * FROM view depending on whether it was run after
        an INSERT or after a SELECT statement. This was corrected
        by restoring the old value of thd->set_query_id when
        returning from the function setup_fields where possible
        reset could occur.
        If the value of thd->set_query_id == 0 then the fields
        substituted instead of '*' were not registered as used
        for bitmaps used_keys. This caused selection of an invalid
        execution plan for the query SELECT * from <view>.
      view.result, view.test:
        Added a test case for bug #12382.
      0aff8a13
  19. 08 Aug, 2005 1 commit
    • sergefp@mysql.com's avatar
      Fix for BUG#12228: SP cache code: · c6db76b0
      sergefp@mysql.com authored
      * Cleanup SP Cache code, now SP Cache only deletes sp_head objects in 
        sp_cache_flush_obsolete() invalidates all pointers to routines in the cache.
      * Use new SP Cache use contract in the code.
      
      There is no test case because it doesn't seem to be possible to cause thread races to end
      the same way they end in heavy-load test. This patch removes the crash in heavy test.
      c6db76b0
  20. 02 Aug, 2005 1 commit
  21. 31 Jul, 2005 1 commit
    • monty@mishka.local's avatar
      Fixes during review of new pushed code · 8437e9c1
      monty@mishka.local authored
      Change bool in C code to my_bool
      Added to mysqltest --enable_parsning and --disable_parsing to avoid to have to comment parts of tests
      Added comparison of LEX_STRING's and use this to compare file types for view and trigger files.
      8437e9c1
  22. 30 Jul, 2005 2 commits
  23. 25 Jul, 2005 1 commit
    • igor@rurik.mysql.com's avatar
      sql_select.cc: · 24d148d0
      igor@rurik.mysql.com authored
        Fixed bug #11412.
        Reversed the patch of cs 1.1934 for the function 
        create_tmp_table. Modified the function to support
        tem_ref objects created for view fields.
      item_buff.cc:
        Fixed bug #11412.
        Modified implementation of new_Cached_item to support
        cacheing of view fields.
      item.h:
        Fixed bug #11412.
        Changed implementation of Item_ref::get_tmp_table_field and
        added Item_ref::get_tmp_table_item to support Item_ref objects
        created for view fields.
      view.test, view.result:
        Added a test case for bug #11412.
      24d148d0
  24. 20 Jul, 2005 1 commit
  25. 19 Jul, 2005 1 commit
  26. 15 Jul, 2005 1 commit
  27. 14 Jul, 2005 1 commit
  28. 13 Jul, 2005 1 commit
  29. 12 Jul, 2005 4 commits
    • evgen@moonbone.local's avatar
      Fix bug#11709 View was ordered by wrong column. · de016ca7
      evgen@moonbone.local authored
      When searching column to sort on, item was compared to field under view
      column, but not the column itself. Because names of view column and underlaid
      field may differ, it leads to possibly choosing wrong column for sorting on.
      
      This patch makes Item_direct_view_ref::eq(Item *item,...) compare
      item's name with it's own name proir to comparing to *ref item.
      de016ca7
    • igor@igor-inspiron.creware.com's avatar
      view.test, view.result: · db28fb11
      igor@igor-inspiron.creware.com authored
        Expanded the test case for bug #6120 to cover
        DROP VIEW / CREATE VIEW scenario.
      sql_view.cc:
        Expanded the fix for bug #6120 to cover the case of
        DROP VIEW / CREATE_VIEW.
      db28fb11
    • evgen@moonbone.local's avatar
      Fix bug #11399 Column alias was lost during view preraration. · dc5949b3
      evgen@moonbone.local authored
      New item created in find_field_in_table() to fix view's item, was created 
      without taking into account original item's alias. This patch checks if alias 
      is set to the original item and if so sets it to newly created item.
      dc5949b3
    • igor@igor-inspiron.creware.com's avatar
      view.result, view.test: · 26ee0b2e
      igor@igor-inspiron.creware.com authored
        Added a test case for bug #11771.
      item.h:
        Fixed bug #11771.
        Added method reset_query_id_processor to be able to adjust
        query_id for fields generated from * in queries like this:
        SELECT * FROM <view> ...
      sql_base.cc:
        Fixed bug #11771.
        Adjusted query_id for fields generated from * in queries
        like this: SELECT * FROM <view> ...
      26ee0b2e
  30. 08 Jul, 2005 1 commit