1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:30:21 -07:00

database/sql: remove unnecessary types in composite literals

Change-Id: I30c576f826c82cbc62ce28ea7f4886702bd6605d
GitHub-Last-Rev: 2fead200db
GitHub-Pull-Request: golang/go#42618
Reviewed-on: https://go-review.googlesource.com/c/go/+/270000
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Trust: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Elias506 2021-03-25 14:46:15 +00:00 committed by Tobias Klauser
parent 53941b6150
commit 4d66d77cd2

View File

@ -915,7 +915,7 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (
parentMem: s.c,
posRow: -1,
rows: [][]*row{
[]*row{
{
{
cols: []interface{}{
txStatus,
@ -924,12 +924,12 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (
},
},
cols: [][]string{
[]string{
{
"tx_status",
},
},
colType: [][]string{
[]string{
{
"string",
},
},