Skip to content

Commit

Permalink
Update func
Browse files Browse the repository at this point in the history
Signed-off-by: xichengliudui <liuduidui@beyondcent.com>
  • Loading branch information
xichengliudui committed Jan 30, 2019
1 parent 869543a commit 76b1a6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go/vt/vtgate/executor_select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ func TestSelectKeyRangeUnique(t *testing.T) {
func TestSelectIN(t *testing.T) {
executor, sbc1, sbc2, sbclookup := createExecutorEnv()

// Constant in IN is just a number, not a bind variable.
// Constant IN is just a number, not a bind variable.
_, err := executorExec(executor, "select id from user where id in (1)", nil)
if err != nil {
t.Error(err)
Expand All @@ -614,7 +614,7 @@ func TestSelectIN(t *testing.T) {
t.Errorf("sbc2.Queries: %+v, want nil\n", sbc2.Queries)
}

// Constant in IN is just a couple numbers, not bind variables.
// Constant IN is just a couple numbers, not bind variables.
// They result in two different queries on two shards.
sbc1.Queries = nil
sbc2.Queries = nil
Expand Down
4 changes: 2 additions & 2 deletions go/vt/vtgate/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ func TestExecutorUnrecognized(t *testing.T) {
func TestExecutorMessageAckSharded(t *testing.T) {
executor, sbc1, sbc2, _ := createExecutorEnv()

// Constant in IN is just a number, not a bind variable.
// Constant IN is just a number, not a bind variable.
ids := []*querypb.Value{{
Type: sqltypes.VarChar,
Value: []byte("1"),
Expand All @@ -1860,7 +1860,7 @@ func TestExecutorMessageAckSharded(t *testing.T) {
t.Errorf("sbc2.MessageIDs: %+v, want nil\n", sbc2.MessageIDs)
}

// Constant in IN is just a couple numbers, not bind variables.
// Constant IN is just a couple numbers, not bind variables.
// They result in two different MessageIDs on two shards.
sbc1.MessageIDs = nil
sbc2.MessageIDs = nil
Expand Down

0 comments on commit 76b1a6b

Please sign in to comment.