1. 08 Oct, 2008 1 commit
    • Georgi Kodinov's avatar
      Bug #32124: crash if prepared statements refer to variables in the where clause · 489ad44a
      Georgi Kodinov authored
                        
      The code to get read the value of a system variable was extracting its value 
      on PREPARE stage and was substituting the value (as a constant) into the parse tree.
      Note that this must be a reversible transformation, i.e. it must be reversed before
      each re-execution.
      Unfortunately this cannot be reliably done using the current code, because there are
      other non-reversible source tree transformations that can interfere with this
      reversible transformation.
      Fixed by not resolving the value at PREPARE, but at EXECUTE (as the rest of the 
      functions operate). Added a cache of the value (so that it's constant throughout
      the execution of the query). Note that the cache also caches NULL values.
      Updated an obsolete related test suite (variables-big) and the code to test the 
      result type of system variables (as per bug 74).
      489ad44a
  2. 06 Oct, 2008 11 commits
  3. 04 Oct, 2008 2 commits
  4. 03 Oct, 2008 6 commits
  5. 02 Oct, 2008 16 commits
  6. 01 Oct, 2008 4 commits
    • Matthias Leich's avatar
      Fix for Bug#37744 Expected result of "<engine>_storedproc" test · 766803d5
      Matthias Leich authored
                        is inconsistent
      + several improvements
      Details:
      - The subtest with assignment of floating point numbers to
        DECIMAL parameters in functions and procedures checks
        now that the final DECIMAL value is the same as if we assign
        the floating point numbers to columns, user variables etc.
        = The impact of math libs or truncation must be the same.
      - Remove storage engine variants of this test because the
        stored procedure properties tested do not depend on
        the storage engine.
        Use the fastest storage engine (MEMORY) for any tables
        needed.
      - reset global sort_buffer_size to startup value
      - Partially improved formatting.
      766803d5
    • Ingo Struewing's avatar
      merge · 61753a07
      Ingo Struewing authored
      61753a07
    • Georgi Kodinov's avatar
      f80fbfa2
    • Georgi Kodinov's avatar
      Bug#37943: Reproducible mysqld crash/sigsegv in sel_trees_can_be_ored · e59a0361
      Georgi Kodinov authored
                  
      When analyzing the possible index use cases the server was re-using an internal structure.
      This is wrong, as this internal structure gets updated during the analysis.
      Fixed by making a copy of the internal structure for every place it needs to be used.
      Also stopped the generation of empty SEL_TREE structures that unnecessary 
      complicate the analysis.
      e59a0361