Open magellancl opened 7 months ago
Related to https://github.com/go-gormigrate/gormigrate/issues/217
This library is using customizable table and column name, so Create is used this way :
columnName := "name" user := map[string]interface{}{columnName: "id"} err := DB.Table("users").Create(user).Error
which return the error "LastInsertId is not supported by this driver", instead of creating the record
Explain your user case and expected results
Related to https://github.com/go-gormigrate/gormigrate/issues/217
This library is using customizable table and column name, so Create is used this way :
which return the error "LastInsertId is not supported by this driver", instead of creating the record