-
Notifications
You must be signed in to change notification settings - Fork 296
Support Update join #761
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
base: master
Are you sure you want to change the base?
Support Update join #761
Conversation
# Conflicts: # pkg/datasource/sql/exec/at/base_executor.go # pkg/datasource/sql/exec/at/update_executor_test.go
|
@@ -244,6 +244,10 @@ func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, e | |||
) | |||
} | |||
|
|||
func (c *Conn) GetDbVersion() string { | |||
return c.res.GetDbVersion() |
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.
这个有需要支持吗
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.
我认为是需要支持的,不过或许可以提另外的issues分开去做?
@@ -244,6 +244,10 @@ func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, e | |||
) | |||
} | |||
|
|||
func (c *Conn) GetDbVersion() string { | |||
return c.res.GetDbVersion() |
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.
Maybe 'c.res' was nil?
|
||
// NewUpdateJoinExecutor get executor | ||
func NewUpdateJoinExecutor(parserCtx *types.ParseContext, execContent *types.ExecContext, hooks []exec.SQLHook) executor { | ||
minimumVersion, _ := util.ConvertDbVersion("5.7.5") |
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.
Avoid using the magic value '5.7.5'.
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.
改为配置或是常量的方式定义 version
待添加新的issue,读取数据库的元数据,查询版本 |
What this PR does:
This pr will support update join
Which issue(s) this PR fixes:
Fixes #703
Special notes for your reviewer:
Does this PR introduce a user-facing change?: