~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.. _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.