diff options
author | bell@sanja.is.com.ua <> | 2004-11-12 14:34:00 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-11-12 14:34:00 +0200 |
commit | 31f7811183b6dd197cb7643abbe1b56cec72b602 (patch) | |
tree | 7591e416fa1685ed1e41707824091a5ca7f9c2c1 /mysys/my_error.c | |
parent | 5bf7a8c30b7fb3c21a8cd57b4dad9b05b2a3b521 (diff) | |
download | mariadb-git-31f7811183b6dd197cb7643abbe1b56cec72b602.tar.gz |
post-review fixes
Diffstat (limited to 'mysys/my_error.c')
-rw-r--r-- | mysys/my_error.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysys/my_error.c b/mysys/my_error.c index 8a377f63c7e..75aa84efca0 100644 --- a/mysys/my_error.c +++ b/mysys/my_error.c @@ -22,6 +22,18 @@ /* Define some external variables for error handling */ +/* + WARNING! + my_error family functions have to be used according following rules: + - if message have not parameters use my_message(ER_CODE, ER(ER_CODE), MYF(N)) + - if message have only integer parameters, string constants (created + inside program) or string put (and cut if it is need) in some limited + length buffer before passing it as parameter then you can use + my_error(ER_CODE, MYF(N), ...). Never pass string get from user to + my_error. + - in all other cases use my_printf_error(ER_CODE, ER(ER_CODE), MYF(N), ...) +*/ + const char ** NEAR my_errmsg[MAXMAPS]={0,0,0,0}; char NEAR errbuff[NRERRBUFFS][ERRMSGSIZE]; |