updated deps; regen ent
This commit is contained in:
@@ -168,8 +168,8 @@ func (e MatchPlayerEdges) MessagesOrErr() ([]*Messages, error) {
|
||||
}
|
||||
|
||||
// scanValues returns the types for scanning values from sql.Rows.
|
||||
func (*MatchPlayer) scanValues(columns []string) ([]interface{}, error) {
|
||||
values := make([]interface{}, len(columns))
|
||||
func (*MatchPlayer) scanValues(columns []string) ([]any, error) {
|
||||
values := make([]any, len(columns))
|
||||
for i := range columns {
|
||||
switch columns[i] {
|
||||
case matchplayer.FieldFlashDurationSelf, matchplayer.FieldFlashDurationTeam, matchplayer.FieldFlashDurationEnemy:
|
||||
@@ -187,7 +187,7 @@ func (*MatchPlayer) scanValues(columns []string) ([]interface{}, error) {
|
||||
|
||||
// assignValues assigns the values that were returned from sql.Rows (after scanning)
|
||||
// to the MatchPlayer fields.
|
||||
func (mp *MatchPlayer) assignValues(columns []string, values []interface{}) error {
|
||||
func (mp *MatchPlayer) assignValues(columns []string, values []any) error {
|
||||
if m, n := len(values), len(columns); m < n {
|
||||
return fmt.Errorf("mismatch number of scan values: %d != %d", m, n)
|
||||
}
|
||||
|
Reference in New Issue
Block a user