Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vmathur12 authored Jul 29, 2024
1 parent 21dfa73 commit ad47d13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testdata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,12 @@ func Columns() error {
defer db.Close()
fmt.Println("----1-----")
st, _ := db.Prepare("select * from rocket")
fmt.Println("----2-----")
rows, _ := st.Query()
fmt.Println("----3-----")
_, err := rows.Columns()
if err != nil {
fmt.Println("err: ", err)
return err
}
for rows.Next() {
Expand Down

0 comments on commit ad47d13

Please sign in to comment.