-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: wrong index in cell_at() of JoinTuple and redundant species when calling open() repeatedly #16
Changes from 2 commits
3a35594
f337a07
95d41d8
3298b82
ca47644
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ class RowTuple : public Tuple | |
{ | ||
table_ = table; | ||
table_alias_ = table_alias; | ||
species_.clear(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这里直接 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
确实会,但你这个是小众场景,引入一个智能指针是不是没必要? |
||
this->species_.reserve(fields->size()); | ||
for (const FieldMeta &field : *fields) { | ||
species_.push_back(new FieldExpr(table, &field)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
添加一些注释来解释这个代码的含义吧 什么时候需要