mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
dialect/sql/sqlgraph: catch SQLite INSERT errors executed with Driver.Query (#3415)
This commit is contained in:
@@ -1630,7 +1630,7 @@ func (c *batchCreator) insertLastIDs(ctx context.Context, tx dialect.ExecQuerier
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return rows.Err()
|
||||
}
|
||||
// MySQL.
|
||||
var res sql.Result
|
||||
|
||||
Reference in New Issue
Block a user