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

refactor type system #439

Merged
merged 11 commits into from
Aug 21, 2024
Merged

refactor type system #439

merged 11 commits into from
Aug 21, 2024

Conversation

nautaa
Copy link
Member

@nautaa nautaa commented Aug 19, 2024

What problem were solved in this pull request?

refactor type system, types are implemented based on DataType, which facilitates extension of the types.

Problem:

What is changed and how it works?

Other information

return RC::INTERNAL;
}
}
Value::add(value, value_, value_);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return Value::add(...) ?

AttrType attr_type_from_string(const char *s)
{
for (unsigned int i = 0; i < sizeof(ATTR_TYPE_NAME) / sizeof(ATTR_TYPE_NAME[0]); i++) {
if (0 == strcmp(ATTR_TYPE_NAME[i], s)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strcasecmp?

@hnwyllmm hnwyllmm merged commit ebe460e into oceanbase:main Aug 21, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants