1. 01 Nov, 2006 3 commits
    • petr/cps@owlet.local's avatar
      Merge mysql.com:/home/cps/mysql/trees/5.0-runtime-bug9191 · 3df8165c
      petr/cps@owlet.local authored
      into  mysql.com:/home/cps/mysql/trees/5.1-runtime-bug9191
      3df8165c
    • petr/cps@mysql.com/owlet.local's avatar
      Merge mysql.com:/home/cps/mysql/trees/4.1-runtime-bug9191 · 7974bf90
      petr/cps@mysql.com/owlet.local authored
      into  mysql.com:/home/cps/mysql/trees/5.0-runtime-bug9191
      7974bf90
    • petr/cps@mysql.com/owlet.local's avatar
      Fix Bug #9191 "TIMESTAMP/from_unixtime() no longer accepts 2^31-1" · 3ec542df
      petr/cps@mysql.com/owlet.local authored
      (4.1 version, with post-review fixes)
        
        The fix for another Bug (6439) limited FROM_UNIXTIME() to
        TIMESTAMP_MAX_VALUE which is 2145916799 or 2037-12-01 23:59:59 GMT,
        however unix timestamp in general is not considered to be limited 
        by this value. All dates up to power(2,31)-1 are valid.
        
        This patch extends allowed TIMESTAMP range so, that max
        TIMESTAMP value is power(2,31)-1. It also corrects
        FROM_UNIXTIME() and UNIX_TIMESTAMP() functions, so that
        max allowed UNIX_TIMESTAMP() is power(2,31)-1. FROM_UNIXTIME()
        is fixed accordingly to allow conversion of dates up to
        2038-01-19 03:14:07 UTC. The patch also fixes CONVERT_TZ()
        function to allow extended range of dates.
        
        The main problem solved in the patch is possible overflows
        of variables, used in broken-time representation to time_t
        conversion (required for UNIX_TIMESTAMP).
      3ec542df
  2. 27 Oct, 2006 2 commits
    • kroki/tomash@moonlight.intranet's avatar
      Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug22584 · db952c2f
      kroki/tomash@moonlight.intranet authored
      into  moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.1-bug22584
      db952c2f
    • kroki/tomash@moonlight.intranet's avatar
      BUG#22584: last_insert_id not updated after inserting a record through · 0e0f7a04
      kroki/tomash@moonlight.intranet authored
      a updatable view.
      
      When there's a VIEW on a base table that have AUTO_INCREMENT column, and
      this VIEW doesn't provide an access such column, after INSERT to such
      VIEW LAST_INSERT_ID() did not return the value just generated.
      
      This behaviour is intended and correct, because if the VIEW doesn't list
      some columns then these columns are effectively hidden from the user,
      and so any side effects of inserting default values to them.
      
      However, there was a bug that such statement inserting into a view would
      reset LAST_INSERT_ID() instead of leaving it unchanged.
      
      This patch restores the original value of LAST_INSERT_ID() instead of
      resetting it to zero.
      0e0f7a04
  3. 25 Oct, 2006 9 commits
  4. 24 Oct, 2006 5 commits
  5. 23 Oct, 2006 3 commits
  6. 20 Oct, 2006 10 commits
  7. 19 Oct, 2006 8 commits