Julien Schmidt 12 years ago
parent
commit
b8bd3dde80
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packets.go

+ 3 - 1
packets.go

@@ -188,8 +188,10 @@ func (mc *mysqlConn) readInitPacket() (err error) {
 		mc.cipher = append(mc.cipher, data[pos:pos+12]...)
 
 		// TODO: Verify string termination
-		// EOF for version >= (5.5.7 and < 5.5.10) or (>= 5.6.0 and < 5.6.2)
+		// EOF if version (>= 5.5.7 and < 5.5.10) or (>= 5.6.0 and < 5.6.2)
 		// \NUL otherwise
+		// http://dev.mysql.com/doc/internals/en/connection-phase.html#packet-Protocol::Handshake
+		//
 		//if data[len(data)-1] == 0 {
 		//	return
 		//}