~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/errmsg.h

  • Committer: Monty Taylor
  • Date: 2010-09-28 07:45:44 UTC
  • mto: (1799.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1800.
  • Revision ID: mordred@inaugust.com-20100928074544-s3ujnv6s8wro74l2
Added BSD copying file.

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. */
40
24
enum CR_CLIENT_ERRORS {
41
25
  CR_ERROR_FIRST    =2000, /*Copy first error nr.*/
42
26
  CR_UNKNOWN_ERROR  =2000,