~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/errmsg.h

  • Committer: Joe Daly
  • Date: 2010-03-08 04:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1380.
  • Revision ID: skinny.moey@gmail.com-20100308042354-7k0jibdqaxkhac7o
scoreboardĀ implementationĀ forĀ statistics

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define PLUGIN_MYSQL_PROTOCOL_ERRMSG_H
22
22
 
23
23
/* Error messages for MySQL clients */
 
24
/* (Error messages for the daemon are in sql/share/errmsg.txt) */
 
25
 
 
26
#ifdef  __cplusplus
 
27
extern "C"
 
28
#endif
 
29
const char * drizzleclient_get_client_error(unsigned int err_index);
 
30
 
 
31
#define CR_MIN_ERROR    2000  /* For easier client code */
 
32
#define CR_MAX_ERROR    2999
 
33
#if !defined(ER)
 
34
#define ER(X) drizzleclient_get_client_error((X)-CR_MIN_ERROR)
 
35
#endif
 
36
#define CLIENT_ERRMAP    2  /* Errormap used by my_error() */
 
37
 
 
38
/* Do not add error numbers before CR_ERROR_FIRST. */
 
39
/* If necessary to add lower numbers, change CR_ERROR_FIRST accordingly. */
24
40
enum CR_CLIENT_ERRORS {
25
41
  CR_ERROR_FIRST    =2000, /*Copy first error nr.*/
26
42
  CR_UNKNOWN_ERROR  =2000,