Skip to content

Commit 241fd91

Browse files
committed
Make insertId capitalization consistent.
1 parent 37881ae commit 241fd91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packets.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -615,23 +615,23 @@ func readStatus(b []byte) statusFlag {
615615
// http://dev.mysql.com/doc/internals/en/generic-response-packets.html#packet-OK_Packet
616616
func (mc *mysqlConn) handleOkPacket(data []byte) error {
617617
var n, m int
618-
var affectedRows, insertID uint64
618+
var affectedRows, insertId uint64
619619

620620
// 0x00 [1 byte]
621621

622622
// Affected rows [Length Coded Binary]
623623
affectedRows, _, n = readLengthEncodedInteger(data[1:])
624624

625625
// Insert id [Length Coded Binary]
626-
insertID, _, m = readLengthEncodedInteger(data[1+n:])
626+
insertId, _, m = readLengthEncodedInteger(data[1+n:])
627627

628628
// Update for the current statement result (only used by
629629
// readResultSetHeaderPacket).
630630
if len(mc.affectedRows) > 0 {
631631
mc.affectedRows[len(mc.affectedRows)-1] = int64(affectedRows)
632632
}
633633
if len(mc.insertIds) > 0 {
634-
mc.insertIds[len(mc.insertIds)-1] = int64(insertID)
634+
mc.insertIds[len(mc.insertIds)-1] = int64(insertId)
635635
}
636636

637637
// server_status [2 bytes]

0 commit comments

Comments
 (0)