Skip to content

Commit

Permalink
Title case id
Browse files Browse the repository at this point in the history
  • Loading branch information
jsha committed Jun 14, 2024
1 parent c2d6015 commit 80c09d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gorp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1766,21 +1766,21 @@ func TestTypeConversionExample(t *testing.T) {
}

_, err = dbmap.SelectInt(context.Background(),
"select id from type_conv_test where PersonJSON = "+dbmap.Dialect.BindVar(0)+" and Name = "+dbmap.Dialect.BindVar(1),
"select Id from type_conv_test where PersonJSON = "+dbmap.Dialect.BindVar(0)+" and Name = "+dbmap.Dialect.BindVar(1),
personJSON, hi2)
if err != nil {
t.Errorf("Select failed: %s", err)
}

_, err = dbmap.SelectInt(context.Background(),
"select id from type_conv_test where PersonJSON = "+dbmap.Dialect.BindVar(0)+" and Name = "+dbmap.Dialect.BindVar(1),
"select Id from type_conv_test where PersonJSON = "+dbmap.Dialect.BindVar(0)+" and Name = "+dbmap.Dialect.BindVar(1),
personJSON, hi2)
if err != nil {
t.Errorf("Select failed: %s", err)
}

_, err = dbmap.SelectNullInt(context.Background(),
"select id from type_conv_test where PersonJSON = "+dbmap.Dialect.BindVar(0)+" and Name = "+dbmap.Dialect.BindVar(1),
"select Id from type_conv_test where PersonJSON = "+dbmap.Dialect.BindVar(0)+" and Name = "+dbmap.Dialect.BindVar(1),
personJSON, hi2)
if err != nil {
t.Errorf("Select failed: %s", err)
Expand Down

0 comments on commit 80c09d0

Please sign in to comment.