Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: sync MYSQL_TYPE_DB_TRX_ID to stored_program_bits.h #172

Open
db-lover opened this issue May 22, 2024 · 0 comments
Open

Feature: sync MYSQL_TYPE_DB_TRX_ID to stored_program_bits.h #172

db-lover opened this issue May 22, 2024 · 0 comments
Assignees
Labels
feature it will be implemented as a new feature

Comments

@db-lover
Copy link

Summary
When defined a new column type in include/field_types.h, Keep include/mysql/components/services/bits/stored_program_bits.h in sync with it.

As described in include/field_types.h:

/**
  Column types for MySQL
  Note: Keep include/mysql/components/services/bits/stored_program_bits.h in
  sync with this
*/
enum enum_field_types {
  MYSQL_TYPE_DECIMAL,
  MYSQL_TYPE_TINY,
  MYSQL_TYPE_SHORT,
  MYSQL_TYPE_LONG,
  MYSQL_TYPE_FLOAT,
...
...

Description for this feature.

Add types in include/mysql/components/services/bits/stored_program_bits.h

...
#define MYSQL_SP_ARG_TYPE_DB_TRX_ID (1ULL << 21)
#define MYSQL_SP_ARG_TYPE_INVALID (1ULL << 22)
#define MYSQL_SP_ARG_TYPE_BOOL (1ULL << 23)
#define MYSQL_SP_ARG_TYPE_JSON (1ULL << 24)
#define MYSQL_SP_ARG_TYPE_NEWDECIMAL (1ULL << 25)
#define MYSQL_SP_ARG_TYPE_ENUM (1ULL << 26)
#define MYSQL_SP_ARG_TYPE_SET (1ULL << 27)
#define MYSQL_SP_ARG_TYPE_TINY_BLOB (1ULL << 28)
#define MYSQL_SP_ARG_TYPE_MEDIUM_BLOB (1ULL << 29)
#define MYSQL_SP_ARG_TYPE_LONG_BLOB (1ULL << 30)
#define MYSQL_SP_ARG_TYPE_BLOB (1ULL << 31)
#define MYSQL_SP_ARG_TYPE_VAR_STRING (1ULL << 32)
#define MYSQL_SP_ARG_TYPE_STRING (1ULL << 33)
#define MYSQL_SP_ARG_TYPE_GEOMETRY (1ULL << 34)
@db-lover db-lover added the feature it will be implemented as a new feature label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature it will be implemented as a new feature
Projects
None yet
Development

No branches or pull requests

1 participant