Skip to content

Commit 1a8a45a

Browse files
romberliatercattus
authored andcommitted
fix: init Resultset in Result when handling ddl statement
1 parent 689ccc2 commit 1a8a45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/resp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (c *Conn) handleOKPacket(data []byte) (*Result, error) {
3939
var n int
4040
var pos = 1
4141

42-
r := new(Result)
42+
r := &Result{Resultset: &Resultset{}}
4343

4444
r.AffectedRows, _, n = LengthEncodedInt(data[pos:])
4545
pos += n

0 commit comments

Comments
 (0)