- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for LastInsertId (0.05 seconds)
-
callbacks/create.go
return } pkField = db.Statement.Schema.PrioritizedPrimaryField pkFieldName = db.Statement.Schema.PrioritizedPrimaryField.DBName } insertID, err := result.LastInsertId() insertOk := err == nil && insertID > 0 if !insertOk { if !supportReturning { db.AddError(err) } return } // append @id column with value for auto-increment primary key
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13K bytes - Click Count (0)