mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
53941b6150
commit
4d66d77cd2
1 changed files with 3 additions and 3 deletions
|
|
@ -915,7 +915,7 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (
|
||||||
parentMem: s.c,
|
parentMem: s.c,
|
||||||
posRow: -1,
|
posRow: -1,
|
||||||
rows: [][]*row{
|
rows: [][]*row{
|
||||||
[]*row{
|
{
|
||||||
{
|
{
|
||||||
cols: []interface{}{
|
cols: []interface{}{
|
||||||
txStatus,
|
txStatus,
|
||||||
|
|
@ -924,12 +924,12 @@ func (s *fakeStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
cols: [][]string{
|
cols: [][]string{
|
||||||
[]string{
|
{
|
||||||
"tx_status",
|
"tx_status",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
colType: [][]string{
|
colType: [][]string{
|
||||||
[]string{
|
{
|
||||||
"string",
|
"string",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue