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 yu34po committed Jan 2, 2019
1 parent 932ed47 commit f1ce805
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions executor/seqtest/prepared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,16 @@ func (s *seqTestSuite) 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 f1ce805

Please sign in to comment.