diff options
author | dlenev@brandersnatch.localdomain <> | 2004-09-07 16:29:46 +0400 |
---|---|---|
committer | dlenev@brandersnatch.localdomain <> | 2004-09-07 16:29:46 +0400 |
commit | 9ed038dd6f788e18154c299c07ba5c88446fd638 (patch) | |
tree | 1da70dd5c1cc43e315c793e1a029a25723888964 /include | |
parent | b93aa71d15473f6b108ce2ec63c8d9a0b3ac5f34 (diff) | |
download | mariadb-git-9ed038dd6f788e18154c299c07ba5c88446fd638.tar.gz |
WL#1218 "Triggers". Some very preliminary version of patch.
Mostly needed for Monty for him getting notion what needed for triggers
from new .FRM format.
Things to be done:
- Right placement of trigger's invocations
- Right handling of errors in triggers (including transaction rollback)
- Support for priviliges
- Right handling of DROP/RENAME table (hope that it will be handled automatically
with merging of .TRG into .FRM file)
- Saving/restoring some information critical for trigger creation and replication
with their definitions (e.g. sql_mode, creator, ...)
- Replication
Already has some known bugs so probably not for general review.
Diffstat (limited to 'include')
-rw-r--r-- | include/mysqld_error.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/mysqld_error.h b/include/mysqld_error.h index 0075e51f72d..fa5fd3db2b0 100644 --- a/include/mysqld_error.h +++ b/include/mysqld_error.h @@ -370,4 +370,9 @@ #define ER_VIEW_WRONG_LIST 1351 #define ER_WARN_VIEW_MERGE 1352 #define ER_WARN_VIEW_WITHOUT_KEY 1353 -#define ER_ERROR_MESSAGES 354 +#define ER_TRG_ALREADY_EXISTS 1354 +#define ER_TRG_DOES_NOT_EXIST 1355 +#define ER_TRG_ON_VIEW_OR_TEMP_TABLE 1356 +#define ER_TRG_CANT_CHANGE_ROW 1357 +#define ER_TRG_NO_SUCH_ROW_IN_TRG 1358 +#define ER_ERROR_MESSAGES 359 |