Want more features on Pastebin? Sign Up, it's FREE!
Guest

MySQL Bug #61209 Fix

By: a guest on Dec 29th, 2011  |  syntax: Diff  |  size: 0.59 KB  |  views: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
  2. index 69dec15..4528f8f 100644
  3. --- a/storage/innobase/handler/ha_innodb.cc
  4. +++ b/storage/innobase/handler/ha_innodb.cc
  5. @@ -10802,7 +10802,7 @@ ha_innobase::get_auto_increment(
  6.  
  7.                 /* Compute the last value in the interval */
  8.                 next_value = innobase_next_autoinc(
  9. -                       current, need, offset, col_max_value);
  10. +                       current + need - increment, increment, offset, col_max_value);
  11.  
  12.                 prebuilt->autoinc_last_value = next_value;
clone this paste RAW Paste Data