Clone of PhatAC @ https://github.com/floaterxk/PhatAC

binary_log_types.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* Copyright (c) 2014, 2015 Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  12. /**
  13. @file binary_log_types.h
  14. @brief This file contains the field type.
  15. @note This file can be imported both from C and C++ code, so the
  16. definitions have to be constructed to support this.
  17. */
  18. #ifndef BINARY_LOG_TYPES_INCLUDED
  19. #define BINARY_LOG_TYPES_INCLUDED
  20. #ifdef __cplusplus
  21. extern "C"
  22. {
  23. #endif
  24. /*
  25. * Constants exported from this package.
  26. */
  27. typedef enum enum_field_types {
  28. MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
  29. MYSQL_TYPE_SHORT, MYSQL_TYPE_LONG,
  30. MYSQL_TYPE_FLOAT, MYSQL_TYPE_DOUBLE,
  31. MYSQL_TYPE_NULL, MYSQL_TYPE_TIMESTAMP,
  32. MYSQL_TYPE_LONGLONG,MYSQL_TYPE_INT24,
  33. MYSQL_TYPE_DATE, MYSQL_TYPE_TIME,
  34. MYSQL_TYPE_DATETIME, MYSQL_TYPE_YEAR,
  35. MYSQL_TYPE_NEWDATE, MYSQL_TYPE_VARCHAR,
  36. MYSQL_TYPE_BIT,
  37. MYSQL_TYPE_TIMESTAMP2,
  38. MYSQL_TYPE_DATETIME2,
  39. MYSQL_TYPE_TIME2,
  40. MYSQL_TYPE_JSON=245,
  41. MYSQL_TYPE_NEWDECIMAL=246,
  42. MYSQL_TYPE_ENUM=247,
  43. MYSQL_TYPE_SET=248,
  44. MYSQL_TYPE_TINY_BLOB=249,
  45. MYSQL_TYPE_MEDIUM_BLOB=250,
  46. MYSQL_TYPE_LONG_BLOB=251,
  47. MYSQL_TYPE_BLOB=252,
  48. MYSQL_TYPE_VAR_STRING=253,
  49. MYSQL_TYPE_STRING=254,
  50. MYSQL_TYPE_GEOMETRY=255
  51. } enum_field_types;
  52. #define DATETIME_MAX_DECIMALS 6
  53. #ifdef __cplusplus
  54. }
  55. #endif // __cplusplus
  56. #endif /* BINARY_LOG_TYPES_INCLUDED */