1. 09 Jun, 2011 1 commit
    • Igor Babaev's avatar
      Fixed LP bug #794038. · 4cf4f785
      Igor Babaev authored
      INSERT/UPDATE/DELETE statement that used a temptable view v1 could lead to
      a crash if v1 was defined as a select from a mergeable view v2 that selected
      rows from a temptable view v3. 
       
      When INSERT/UPDATE/DELETE uses a view that is not updatable then field
      translation for the view should be created before the prepare phase.
      4cf4f785
  2. 06 Jun, 2011 2 commits
    • Igor Babaev's avatar
      Fixed LP bug #793436. · 5cc770fa
      Igor Babaev authored
      When looking for the execution plan of a derived table to be materialized
      JOIN::optimize finds  out that all joined tables of the derived table
      contain not more than one row then the derived table should be maretialized
      at the optimization stage.
      Added a test case for the bug.
      Adjusted results in other test cases.
      5cc770fa
    • Igor Babaev's avatar
      Added two new flags for the optimizer switch: · 3413328c
      Igor Babaev authored
      'derived_merge':
        - if the flag is off then all derived tables are materialized
        - if the flag is on then mergeable derived tables are merged
      'derived_with_keys':
        - if the flag is off then no keys are created for derived tables
        - if the flag is on then for any derived table a key to access 
          the derived table may be created.
      
      Now by default both flags are on.
      Later the default values for the flags will be off to comply with
      the current behaviour of mysql-5.1. 
      
      Uncommented previously commented out test case from parts.partition_repair_myisam
      after having added an explicit requirement to materialize the derived
      table used in the test case.  
      
       
      3413328c
  3. 05 Jun, 2011 1 commit
  4. 04 Jun, 2011 1 commit
  5. 03 Jun, 2011 7 commits
  6. 02 Jun, 2011 5 commits
  7. 31 May, 2011 4 commits
  8. 30 May, 2011 5 commits
  9. 29 May, 2011 4 commits
  10. 28 May, 2011 10 commits