Remove unused error messages

Bug #628336 reported by Lee Bieber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Medium
Unassigned
7.0
Fix Released
Medium
Unassigned

Bug Description

Need to sift through the code base and remove unused error messages. I'm going on the premise that if a message is only found in these files then it should be safe to remove them:

client/errname.cc
drizzled/enum.h
drizzled/error.cc
drizzled/sql_state.cc

For now I am not removing any error numbers, just replacing them with UNUSED for example in client/errname.cc
451c451
< { "ER_SP_NO_RETSET",1415 },
---
> { "ER_UNUSED1415",1415 },

and in drizzled/enum.h
760c760
< ER_SP_NO_RETSET,
---
> ER_UNUSED1415,

So far have remove the following error messages:

ER_ABORTING_CONNECTION
ER_ALTER_INFO
ER_BAD_SLAVE
ER_BAD_SLAVE_UNTIL_COND
ER_BINLOG_CREATE_ROUTINE_NEED_SUPER
ER_BINLOG_PURGE_FATAL_ERR
ER_BINLOG_PURGE_PROHIBITED
ER_BINLOG_UNSAFE_ROUTINE
ER_CANNOT_USER
ER_CANT_CREATE_FEDERATED_TABLE
ER_CANT_DO_THIS_DURING_AN_TRANSACTION
ER_CANT_FIND_SYSTEM_REC
ER_CANT_FIND_UDF
ER_CANT_GET_WD
ER_CANT_INITIALIZE_UDF
ER_CANT_SET_WD
ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG
ER_CARTESIAN_JOIN_ATTEMPTED
ER_COLUMNACCESS_DENIED_ERROR
ER_CONFLICTING_DECLARATIONS
ER_CONNECT_TO_FOREIGN_DATA_SOURCE
ER_CORRUPT_HELP_DB
ER_CREATE_DB_WITH_READ_LOCK
ER_CYCLIC_REFERENCE
ER_DB_DROP_RMDIR
ER_DELAYED_CANT_CHANGE_LOCK
ER_DELAYED_INSERT_TABLE_LOCKED
ER_DIFF_GROUPS_PROC
ER_DROP_USER
ER_DUMP_NOT_IMPLEMENTED
ER_DUP_ARGUMENT
ER_ERROR_DURING_CHECKPOINT
ER_ERROR_DURING_FLUSH_LOGS
ER_ERROR_WHEN_EXECUTING_COMMAND
ER_EXEC_STMT_WITH_OPEN_CURSOR
ER_FAILED_ROUTINE_BREAK_BINLOG
ER_FLUSH_MASTER_BINLOG_CLOSED
ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST
ER_FOREIGN_DATA_STRING_INVALID
ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE
ER_FORM_NOT_FOUND
ER_FPARSER_BAD_HEADER
ER_FPARSER_EOF_IN_COMMENT
ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER
ER_FPARSER_ERROR_IN_PARAMETER
ER_FPARSER_TOO_BIG_FILE
ER_FSEEK_FAIL
ER_FT_MATCHING_KEY_NOT_FOUND
ER_FUNCTION_NOT_DEFINED
ER_GRANT_WRONG_HOST_OR_USER
ER_HOST_IS_BLOCKED
ER_HOST_NOT_PRIVILEGED
ER_ILLEGAL_GRANT_FOR_TABLE
ER_INDEX_REBUILD
ER_INVALID_TIME_VALUE
ER_INVALID_USE_OF_NULL
ER_IO_ERR_LOG_INDEX_READ
ER_LOGGING_PROHIBIT_CHANGING_OF
ER_LOG_IN_USE
ER_LOG_PURGE_UNKNOWN_ERR
ER_MALFORMED_DEFINER
ER_MASTER
ER_MASTER_FATAL_ERROR_READING_BINLOG
ER_MASTER_INFO
ER_MASTER_NET_READ
ER_MASTER_NET_WRITE
ER_MISSING_SKIP_SLAVE
ER_MIXING_NOT_ALLOWED
ER_NET_ERROR_ON_WRITE
ER_NET_FCNTL_ERROR
ER_NET_READ_ERROR
ER_NET_READ_ERROR_FROM_PIPE
ER_NET_READ_INTERRUPTED
ER_NET_UNCOMPRESS_ERROR
ER_NET_WRITE_INTERRUPTED
ER_NONEXISTING_GRANT
ER_NONEXISTING_TABLE_GRANT
ER_NONUPDATEABLE_COLUMN
ER_NOT_ALLOWED_COMMAND
ER_NOT_SUPPORTED_AUTH_MODE
ER_NO_BINARY_LOGGING
ER_NO_DEFAULT_FOR_VIEW_FIELD
ER_NO_FILE_MAPPING
ER_NO_GROUP_FOR_PROC
ER_NO_PERMISSION_TO_CREATE_USER
ER_NO_RAID_COMPILED
ER_NO_UNIQUE_LOGFILE
ER_ORDER_WITH_PROC
ER_PASSWD_LENGTH
ER_PASSWORD_ANONYMOUS_USER
ER_PASSWORD_NOT_ALLOWED
ER_PASSWORD_NO_MATCH
ER_PROC_AUTO_GRANT_FAIL
ER_PROC_AUTO_REVOKE_FAIL
ER_PS_MANY_PARAM
ER_PS_NO_RECURSION
ER_QUERY_ON_FOREIGN_DATA_SOURCE
ER_QUERY_ON_MASTER
ER_READY
ER_REGEXP_ERROR
ER_RELAY_LOG_FAIL
ER_RELAY_LOG_INIT
ER_RESERVED_SYNTAX
ER_REVOKE_GRANTS
ER_SERVER_IS_IN_SECURE_AUTH_MODE
ER_SLAVE_IGNORED_SSL_PARAMS
ER_SLAVE_IGNORED_TABLE
ER_SLAVE_MUST_STOP
ER_SLAVE_NOT_RUNNING
ER_SLAVE_THREAD
ER_SLAVE_WAS_NOT_RUNNING
ER_SPECIFIC_ACCESS_DENIED_ERROR
ER_SP_ALREADY_EXISTS
ER_SP_BADRETURN
ER_SP_BADSELECT
ER_SP_BADSTATEMENT
ER_SP_BAD_CURSOR_QUERY
ER_SP_BAD_CURSOR_SELECT
ER_SP_CANT_ALTER
ER_SP_CANT_SET_AUTOCOMMIT
ER_SP_CASE_NOT_FOUND
ER_SP_COND_MISMATCH
ER_SP_CURSOR_ALREADY_OPEN
ER_SP_CURSOR_MISMATCH
ER_SP_CURSOR_NOT_OPEN
ER_SP_DROP_FAILED
ER_SP_GOTO_IN_HNDLR
ER_SP_NORETURN
ER_SP_NORETURNEND
ER_SP_NO_DROP_SP
ER_SP_NO_RECURSION
ER_SP_NO_RECURSIVE_CREATE
ER_SP_STORE_FAILED
ER_SP_UNDECLARED_VAR
ER_SP_UNINIT_VAR
ER_SP_WRONG_NO_OF_ARGS
ER_SP_WRONG_NO_OF_FETCH_ARGS
ER_STACK_OVERRUN
ER_STMT_HAS_NO_OPEN_CURSOR
ER_TABLEACCESS_DENIED_ERROR
ER_TABLE_NOT_LOCKED
ER_TABLE_NOT_LOCKED_FOR_WRITE
ER_TOO_BIG_SET
ER_TOO_LONG_STRING
ER_TOO_MANY_DELAYED_THREADS
ER_TOO_MANY_USER_CONNECTIONS
ER_TRANS_CACHE_FULL
ER_TRG_ALREADY_EXISTS
ER_TRG_CANT_CHANGE_ROW
ER_TRG_DOES_NOT_EXIST
ER_TRG_NO_SUCH_ROW_IN_TRG
ER_TRG_ON_VIEW_OR_TEMP_TABLE
ER_UNION_TABLES_IN_DIFFERENT_DIR
ER_UNKNOWN_CHARACTER_SET
ER_UNKNOWN_KEY_CACHE
ER_UNKNOWN_STMT_HANDLER
ER_UNKNOWN_TARGET_BINLOG
ER_UNSUPPORTED_PS
ER_UNTIL_COND_IGNORED
ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE
ER_VIEW_CHECKSUM
ER_VIEW_DELETE_MERGE_VIEW
ER_VIEW_FRM_NO_USER
ER_VIEW_MULTIUPDATE
ER_VIEW_NONUPD_CHECK
ER_VIEW_NO_EXPLAIN
ER_VIEW_NO_INSERT_FIELD_LIST
ER_VIEW_OTHER_USER
ER_VIEW_PREVENT_UPDATE
ER_VIEW_SELECT_CLAUSE
ER_VIEW_SELECT_DERIVED
ER_VIEW_SELECT_TMPTABLE
ER_VIEW_SELECT_VARIABLE
ER_VIEW_WRONG_LIST
ER_WARN_DEPRECATED_SYNTAX
ER_WARN_HOSTNAME_WONT_WORK
ER_WARN_INVALID_TIMESTAMP
ER_WARN_QC_RESIZE
ER_WARN_USING_OTHER_HANDLER
ER_WARN_VIEW_MERGE
ER_WARN_VIEW_WITHOUT_KEY
ER_WRONG_LOCK_OF_SYSTEM_TABLE
ER_WRONG_MAGIC
ER_WRONG_OBJECT
ER_WRONG_PARAMETERS_TO_PROCEDURE
ER_WSAS_FAILED

Related branches

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers