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: filterclause support multiple params. equivalent to the union of multiple single param #38

Conversation

swordqiu
Copy link
Member

改进:filterclause的部分算子支持多个输入参数,等价于单个输入参数的并集

@swordqiu swordqiu requested review from wanyaoqi and yousong and removed request for tb365 November 19, 2019 14:35
@wanyaoqi
Copy link
Member

/lgtm

}
return condFunc(field, fc.params, func(f sqlchemy.IQueryField, p string) sqlchemy.ICondition {
return sqlchemy.Equals(f, p)
})
Copy link
Contributor

Choose a reason for hiding this comment

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

这里应该也可以直接用sqlchemy.Equals, 不需要包装?

Copy link
Member Author

Choose a reason for hiding this comment

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

sqlchemy.Equals的参数类型是interface{},这里要求string

@yousong
Copy link
Contributor

yousong commented Nov 21, 2019

/approve
/lgtm

@yunion-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yousong

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yunion-ci-robot yunion-ci-robot merged commit e03b47b into yunionio:master Nov 21, 2019
wanyaoqi pushed a commit to wanyaoqi/pkg that referenced this pull request Jan 2, 2020
…bugfix/yousong-trace-log to master

* commit '5871460d50827f52bc3c1bfb3f7768f22b9623e4':
  trace: remove unconditional log on EndTrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants