Skip to content

Commit

Permalink
executor: add test case for execute prepare_stmt using binary protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHuaiyu authored and ngaut committed Dec 27, 2018
1 parent 8b970d7 commit 08f56d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions executor/prepared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,16 @@ func (s *testSuite) TestPrepared(c *C) {
exec := &executor.ExecuteExec{}
exec.Next(ctx, nil)
exec.Close()

// issue 8065
stmtId, _, _, err = tk.Se.PrepareStmt("select ? from dual")
c.Assert(err, IsNil)
_, err = tk.Se.ExecutePreparedStmt(ctx, stmtId, 1)
c.Assert(err, IsNil)
stmtId, _, _, err = tk.Se.PrepareStmt("update prepare1 set a = ? where a = ?")
c.Assert(err, IsNil)
_, err = tk.Se.ExecutePreparedStmt(ctx, stmtId, 1, 1)
c.Assert(err, IsNil)
}
}

Expand Down

0 comments on commit 08f56d3

Please sign in to comment.