Skip to content

Commit

Permalink
refactor(datasource,rm): insert on update executor
Browse files Browse the repository at this point in the history
Closes apache#441
  • Loading branch information
liushao committed Jan 13, 2023
1 parent 47929ca commit 110dc95
Show file tree
Hide file tree
Showing 6 changed files with 949 additions and 39 deletions.
2 changes: 2 additions & 0 deletions pkg/datasource/sql/exec/at/at_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ func (e *AtExecutor) ExecWithNamedValue(ctx context.Context, execCtx *types.Exec
exec = NewUpdateExecutor(parser, execCtx, e.hooks)
case types.SQLTypeDelete:
exec = NewDeleteExecutor(parser, execCtx, e.hooks)
case types.SQLTypeInsertOnUpdate:
exec = NewInsertOnUpdateExecutor(parser, execCtx, e.hooks)
//case types.SQLTypeSelectForUpdate:
//case types.SQLTypeMultiDelete:
//case types.SQLTypeMultiUpdate:
Expand Down
Loading

0 comments on commit 110dc95

Please sign in to comment.