-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
bugIt is confirmed a bug, but don't worry, we'll handle it.It is confirmed a bug, but don't worry, we'll handle it.
Description
Go version
go version go1.23.7 darwin/arm64
GoFrame version
v2.9.0
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
g.Model(dao.Users.Table()).InsertAndGetId(do.Users{})
What did you see happen?
INSERT INTO users(``) VALUES()
2025-07-30T20:28:14.694+07:00 [ERRO] {e028f0ff780a5718dbb4b163b4d7f441} [ 4 ms] [default] [mim] [rows:0 ] INSERT INTO users(``) VALUES()
Error: Error 1054 (42S22): Unknown column '' in 'field list'
Stack:
- mim/internal/logic/auth.(*sLogicAuth).SignUp
/Users/joe/Dev/GitHub/mim/internal/logic/auth/auth.go:101 - mim/internal/controller/api.(*Controller).SignUp
/Users/joe/Dev/GitHub/mim/internal/controller/api/api.go:36 - mim/api/auth._AuthService_SignUp_Handler.func1
/Users/joe/Dev/GitHub/mim/api/auth/auth_grpc.pb.go:137 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - mim/utils.UnaryMyCtx
/Users/joe/Dev/GitHub/mim/utils/grpc.go:32 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.getChainUnaryHandler.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1217 - google.golang.org/grpc.NewServer.chainUnaryServerInterceptors.chainUnaryInterceptors.func1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1208 - mim/api/auth._AuthService_SignUp_Handler
/Users/joe/Dev/GitHub/mim/api/auth/auth_grpc.pb.go:139 - google.golang.org/grpc.(*Server).processUnaryRPC
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1405 - google.golang.org/grpc.(*Server).handleStream
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1815 - google.golang.org/grpc.(*Server).serveStreams.func2.1
/Users/joe/go/pkg/mod/google.golang.org/[email protected]/server.go:1035
What did you expect to see?
will not cause an error, cause it's all fields preset default value already.
Metadata
Metadata
Assignees
Labels
bugIt is confirmed a bug, but don't worry, we'll handle it.It is confirmed a bug, but don't worry, we'll handle it.