Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.0 KiB

  1. /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
  2. This library is free software; you can redistribute it and/or
  3. modify it under the terms of the GNU Library General Public
  4. License as published by the Free Software Foundation; either
  5. version 2 of the License, or (at your option) any later version.
  6. This library is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9. Library General Public License for more details.
  10. You should have received a copy of the GNU Library General Public
  11. License along with this library; if not, write to the Free
  12. Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  13. MA 02111-1307, USA */
  14. /* Error messages for mysql clients */
  15. /* error messages for the demon is in share/language/errmsg.sys */
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. void init_client_errs(void);
  20. extern const char *client_errors[]; /* Error messages */
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #define CR_MIN_ERROR 2000 /* For easier client code */
  25. #define CR_MAX_ERROR 2999
  26. #if defined(OS2) && defined( MYSQL_SERVER)
  27. #define CER(X) client_errors[(X)-CR_MIN_ERROR]
  28. #else
  29. #define ER(X) client_errors[(X)-CR_MIN_ERROR]
  30. #endif
  31. #define CLIENT_ERRMAP 2 /* Errormap used by my_error() */
  32. #define CR_UNKNOWN_ERROR 2000
  33. #define CR_SOCKET_CREATE_ERROR 2001
  34. #define CR_CONNECTION_ERROR 2002
  35. #define CR_CONN_HOST_ERROR 2003
  36. #define CR_IPSOCK_ERROR 2004
  37. #define CR_UNKNOWN_HOST 2005
  38. #define CR_SERVER_GONE_ERROR 2006
  39. #define CR_VERSION_ERROR 2007
  40. #define CR_OUT_OF_MEMORY 2008
  41. #define CR_WRONG_HOST_INFO 2009
  42. #define CR_LOCALHOST_CONNECTION 2010
  43. #define CR_TCP_CONNECTION 2011
  44. #define CR_SERVER_HANDSHAKE_ERR 2012
  45. #define CR_SERVER_LOST 2013
  46. #define CR_COMMANDS_OUT_OF_SYNC 2014
  47. #define CR_NAMEDPIPE_CONNECTION 2015
  48. #define CR_NAMEDPIPEWAIT_ERROR 2016
  49. #define CR_NAMEDPIPEOPEN_ERROR 2017
  50. #define CR_NAMEDPIPESETSTATE_ERROR 2018
  51. #define CR_CANT_READ_CHARSET 2019
  52. #define CR_NET_PACKET_TOO_LARGE 2020