.. _error_dictionary_plugin:

Error Dictionary
================

:program:`error_dictionary` creates the ``ERRORS`` dictionary which lists
the error codes and messages generated by Drizzle.

.. _error_dictionary_loading:

Loading
-------

This plugin is loaded by default.  To stop the plugin from loading by default,
start :program:`drizzled` with::

   --plugin-remove=error_dictionary

.. seealso:: :ref:`drizzled_plugin_options` for more information about adding and removing plugins.

.. _error_dictionary_configuration:

Examples
--------

List Drizzle's error codes and messages:

.. code-block:: mysql

   drizzle> SELECT * FROM DATA_DICTIONARY.ERRORS\G
   *************************** 1. row ***************************
        ERROR_CODE: 1167
        ERROR_NAME: ER_WRONG_KEY_COLUMN
     ERROR_MESSAGE: The used storage engine can't index column '%-.192s'
   ERROR_SQL_STATE: 42000
   *************************** 2. row ***************************
        ERROR_CODE: 0
        ERROR_NAME: EE_OK
     ERROR_MESSAGE: SUCCESS
   ERROR_SQL_STATE: HY000

   -- Hundreds more...

.. _error_dictionary_authors:

Authors
-------

Monty Taylor

.. _error_dictionary_version:

Version
-------

This documentation applies to **error_dictionary 1.0**.

To see which version of the plugin a Drizzle server is running, execute:

.. code-block:: mysql

   SELECT MODULE_VERSION FROM DATA_DICTIONARY.MODULES WHERE MODULE_NAME='error_dictionary'

Changelog
---------

v1.0
^^^^
* First release.
