• marko's avatar
    branches/zip: Merge revisions 2630:2702 from branches/5.1: · eb8b2948
    marko authored
      ------------------------------------------------------------------------
      r2702 | sunny | 2008-09-30 11:41:56 +0300 (Tue, 30 Sep 2008) | 13 lines
    
      branches/5.1: Since handler::get_auto_increment() doesn't allow us
      to return the cause of failure we have to inform MySQL using the
      sql_print_warning() function to return the cause for autoinc failure.
      Previously we simply printed the error code, this patch prints the
      text string representing the following two error codes:
    
      DB_LOCK_WAIT_TIMEOUT
      DB_DEADLOCK.
    
      Bug#35498 Cannot get table test/table1 auto-inccounter value in ::info
    
      Approved by Marko.
      ------------------------------------------------------------------------
      rb://18
    eb8b2948
ha_innodb.cc 275 KB