• unknown's avatar
    WL #1729 Handler: error text for NDB errors · 1ec93c96
    unknown authored
    - New solution after discussions with Sergei, no handler specific code or error messages should be in sql layer.
    next_result, only check for error if check is -1
    Improved index_read 
    
    
    include/mysqld_error.h:
      New error codes ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG, update number to 298.
      Removed prevoius ER_NDB_ERROR, handler specific error should not be here.
    sql/ha_ndbcluster.cc:
      Removed print_error from ha_ndbcluster, added code to handler::print_error to ask  handler::get_error_message for message for an error.
      Fix bug in next_result, only check for error if -1 is returned.
      Make index_read easier, special case where pk_read or unique_index_read is detected and as default do ordered_index_scan
    sql/ha_ndbcluster.h:
      Remplace print_error with get_error_message
    sql/handler.cc:
      Add new function get_error_message usedc to ask handler for a message for an error.
      Call get_error_message from print_error if error code is not known.
    sql/handler.h:
      Add new function get_error_message
    sql/share/czech/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/danish/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/dutch/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/english/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/estonian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/french/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/german/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/greek/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/hungarian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/italian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/korean/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/norwegian-ny/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/norwegian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/polish/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/portuguese/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/romanian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/russian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/serbian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/slovak/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/spanish/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/swedish/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    sql/share/ukrainian/errmsg.txt:
      Error message for ER_GET_ERRMSG and ER_GET_TEMPORARY_ERRMSG
    1ec93c96
mysqld_error.h 10.9 KB