Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
felixgunawan committed Aug 5, 2023
1 parent cb5b3e0 commit 95dedae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/sqldatabase/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ func (m MySQL) Query(ctx context.Context, query string, args ...any) ([]string,
if err != nil {
return nil, nil, err
}
for _, v := range rowNullable {
row = append(row, v.String)
for i := range rowNullable {
row[i] = rowNullable[i].String
}
results = append(results, row)
}
Expand Down
4 changes: 2 additions & 2 deletions tools/sqldatabase/postgresql/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func (p PostgreSQL) Query(ctx context.Context, query string, args ...any) ([]str
if err != nil {
return nil, nil, err
}
for _, v := range rowNullable {
row = append(row, v.String)
for i := range rowNullable {
row[i] = rowNullable[i].String
}
results = append(results, row)
}
Expand Down
4 changes: 2 additions & 2 deletions tools/sqldatabase/sqlite3/sqlite3.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func (m SQLite3) Query(ctx context.Context, query string, args ...any) ([]string
if err != nil {
return nil, nil, err
}
for _, v := range rowNullable {
row = append(row, v.String)
for i := range rowNullable {
row[i] = rowNullable[i].String
}
results = append(results, row)
}
Expand Down

0 comments on commit 95dedae

Please sign in to comment.