~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/errmsg.h

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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,