1. 20 Feb, 2008 1 commit
    • davi@mysql.com/endora.local's avatar
      Bug#34587 Creating a view inside a stored procedure leads to a server crash · b9c6b9ec
      davi@mysql.com/endora.local authored
      The problem is that when a stored procedure is being parsed for
      the first execution, the body is copied to a temporary buffer
      which is disregarded sometime after the statement is parsed.
      And during this parsing phase, the rule for CREATE VIEW was
      holding a reference to the string being parsed for use during
      the execution of the CREATE VIEW statement, leading to invalid
      memory access later.
      
      The solution is to allocate and copy the SELECT of a CREATE
      VIEW statement using the thread memory root, which is set to
      the permanent arena of the stored procedure. 
      b9c6b9ec
  2. 14 Feb, 2008 1 commit
    • anozdrin/alik@quad.'s avatar
      A patch for Bug#18834: ALTER TABLE ADD INDEX on table with · 6bf1306b
      anozdrin/alik@quad. authored
      two timestamp fields.
        
      The actual problem here was that CREATE TABLE allowed zero
      date as a default value for a TIMESTAMP column in NO_ZERO_DATE mode.
        
      The thing is that for TIMESTAMP date type specific rule is applied:
        column_name TIMESTAMP == column_name TIMESTAMP DEFAULT 0
      whever for any other date data type
        column_name TYPE == column_name TYPE DEFAULT NULL
        
      The fix is to raise an error when we're in NO_ZERO_DATE mode and
      there is TIMESTAMP column w/o default value.
      6bf1306b
  3. 13 Feb, 2008 2 commits
  4. 12 Feb, 2008 3 commits
    • anozdrin/alik@quad.'s avatar
      Fix for Bug#32538: View definition picks up character set, · d36d243d
      anozdrin/alik@quad. authored
      but not collation.
      
      The problem here was that text literals in a view were always
      dumped with character set introducer. That lead to loosing
      collation information.
      
      The fix is to dump character set introducer only if it was
      in the original query. That is now possible because there 
      is no problem any more of loss of character set of string
      literals in views -- after WL#4052 the view is dumped 
      in the original character set.
      d36d243d
    • anozdrin/alik@quad.'s avatar
      Additional fix for Bug#31222. · 931f793c
      anozdrin/alik@quad. authored
      931f793c
    • anozdrin/alik@quad.'s avatar
      Fix for Bug#31222: com_% global status counters · d665fc3b
      anozdrin/alik@quad. authored
      behave randomly with mysql_change_user.
        
      The problem was that global status variables were not updated
      in THD::check_user(), so thread statistics were lost after
      COM_CHANGE_USER.
        
      The fix is to update global status variables with the thread ones
      before preparing the thread for new user.
      d665fc3b
  5. 11 Feb, 2008 3 commits
  6. 09 Feb, 2008 3 commits
  7. 08 Feb, 2008 15 commits
  8. 07 Feb, 2008 10 commits
  9. 06 Feb, 2008 2 commits