Skip to content

Commit

Permalink
fix:when id autoincrement insert fail
Browse files Browse the repository at this point in the history
  • Loading branch information
wang1309 committed Jan 7, 2023
1 parent 26915c7 commit aab8d60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/agiledragon/gomonkey v2.0.2+incompatible
github.com/apache/dubbo-getty v1.4.9-0.20220825024508-3da63c3257fa
github.com/arana-db/parser v0.2.5
github.com/dsnet/compress v0.0.1
github.com/dubbogo/gost v1.12.6-0.20220824084206-300e27e9e524
github.com/gin-gonic/gin v1.8.0
github.com/go-sql-driver/mysql v1.6.0
Expand Down Expand Up @@ -50,7 +51,6 @@ require (
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/creasty/defaults v1.5.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/dubbogo/go-zookeeper v1.0.4-0.20211212162352-f9d2183d89d5 // indirect
github.com/dubbogo/grpc-go v1.42.10 // indirect
github.com/dubbogo/triple v1.1.9 // indirect
Expand Down
4 changes: 4 additions & 0 deletions pkg/datasource/sql/exec/at/insert_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ func (i *insertExecutor) ExecContext(ctx context.Context, f exec.CallbackWithNam
return nil, err
}

if i.businesSQLResult == nil {
i.businesSQLResult = res
}

afterImage, err := i.afterImage(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit aab8d60

Please sign in to comment.