Browse Source

Clean up const variable that is no longer necessary

Xiuming Chen 12 years ago
parent
commit
c29c515073
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packets.go

+ 1 - 2
packets.go

@@ -743,8 +743,7 @@ func (stmt *mysqlStmt) writeExecutePacket(args []driver.Value) error {
 	var data []byte
 
 	if len(args) == 0 {
-		const pktLen = 1 + 4 + 1 + 4
-		data = mc.buf.takeBuffer(4 + pktLen)
+		data = mc.buf.takeBuffer(4 + 1 + 4 + 1 + 4)
 	} else {
 		data = mc.buf.takeCompleteBuffer()
 	}