diff --git a/lectures/07-sql/nulls/rows.go b/lectures/07-sql/nulls/rows.go index 7597557..e582a53 100644 --- a/lectures/07-sql/nulls/rows.go +++ b/lectures/07-sql/nulls/rows.go @@ -7,7 +7,7 @@ import ( ) func Results(ctx context.Context, db *sql.DB) { - rows, err := db.QueryContext(ctx, "SELECT id, name FROM users WHERE id = $1", 1) + rows, err := db.QueryContext(ctx, "SELECT name FROM users WHERE id = $1", 1) if err != nil { log.Fatal(err) }