Skip to content

Commit

Permalink
session: tiny update
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Mar 24, 2020
1 parent 4188903 commit d595738
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ func (s *testSessionSuite) TestQueryString(c *C) {
c.Assert(err, IsNil)
id, _, _, err := tk.Se.PrepareStmt("CREATE TABLE t2(id bigint PRIMARY KEY, age int)")
c.Assert(err, IsNil)
params := []types.Datum{}
_, err = tk.Se.ExecutePreparedStmt(context.Background(), id, params)
_, err = tk.Se.ExecutePreparedStmt(context.Background(), id)
c.Assert(err, IsNil)
qs := tk.Se.Value(sessionctx.QueryString)
c.Assert(qs.(string), Equals, "CREATE TABLE t2(id bigint PRIMARY KEY, age int)")
Expand Down

0 comments on commit d595738

Please sign in to comment.