Skip to content

Commit 3da3323

Browse files
committed
Added code for CLIENT_FOUND_ROWS param.
1 parent d22091e commit 3da3323

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packets.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ func (mc *mysqlConn) writeAuthPacket() error {
215215
if mc.flags&clientLongFlag > 0 {
216216
clientFlags |= uint32(clientLongFlag)
217217
}
218-
218+
if _, ok := mc.cfg.params["CLIENT_FOUND_ROWS"]; ok {
219+
clientFlags |= uint32(clientFoundRows)
220+
}
219221
// User Password
220222
scrambleBuff := scramblePassword(mc.cipher, []byte(mc.cfg.passwd))
221223
mc.cipher = nil

0 commit comments

Comments
 (0)