• marko's avatar
    branches/zip: Always translate DB_TOO_BIG_RECORD into · 80da2874
    marko authored
    my_error(ER_TOO_BIG_ROWSIZE, ...).  Otherwise, MySQL can report
    "Got error 139 from storage engine" instead of the appropriate
    error message.
    
    ha_innobase::index_read(), ha_innobase::general_fetch():
    Replace if-else if-else with switch-case.
    Pass table->flags to convert_error_code_to_mysql().
    
    innodb_check_for_record_too_big_error().  Remove.  This code belongs to
    convert_error_code_to_mysql().
    
    convert_error_code_to_mysql(): Add the parameter "flags", for table flags.
    Translate DB_TOO_BIG_RECORD into ER_TOO_BIG_ROWSIZE.
    
    create_index(): Add the parameter "flags".
    
    create_clustered_index_when_no_primary(): Replace the parameter "comp"
    with "flags".
    
    innobase_drop_database(): Remove the #ifdef'd-out call to 
    convert_error_code_to_mysql().
    80da2874
ha_innodb.h 9.33 KB