Permalink
Browse files

compatability update for latest go release

  • Loading branch information...
1 parent bcd8023 commit 78b142408e3a00cd3fae4d35411c78d44effe0b9 Phil Bayfield committed Jan 20, 2011
Showing with 4 additions and 14 deletions.
  1. +3 −2 README.markdown
  2. +1 −1 mysql.go
  3. +0 −11 mysql_packet.go
View
@@ -1,12 +1,13 @@
-GoMySQL Version 0.2.9
-=====================
+GoMySQL Version 0.2.10
+======================
Revision History
----------------
0.2.x series [current]
+* 0.2.10 - Compatability update for Go release.2011-01-20
* 0.2.9 - Added support for MySQL 5.5
* 0.2.8 - Fixes issue #38.
* 0.2.7 - Added additional binary type support: medium int (int32/uint32), decimal (string), new decimal (string), bit ([]byte), year (uint16), set ([]byte), enum/set use string type.
View
@@ -18,7 +18,7 @@ import (
)
const (
- Version = "0.2.9"
+ Version = "0.2.10"
DefaultPort = 3306
DefaultSock = "/var/run/mysqld/mysqld.sock"
MaxPacketSize = 1 << 24
View
@@ -917,17 +917,6 @@ func (pkt *packetExecute) encodeParams(params []interface{}) {
pkt.paramData[i] = pkt.packNumber(uint64(value), 8)
pkt.paramLength += 8
// Floats
- case float:
- if strconv.FloatSize == 32 {
- n = uint16(FIELD_TYPE_FLOAT)
- pkt.paramData[i] = pkt.packNumber(uint64(math.Float32bits(float32(value))), 4)
- pkt.paramLength += 4
- } else {
- n = uint16(FIELD_TYPE_DOUBLE)
- pkt.paramData[i] = pkt.packNumber(uint64(math.Float64bits(float64(value))), 8)
- pkt.paramLength += 8
- }
-
case float32:
n = uint16(FIELD_TYPE_FLOAT)
pkt.paramData[i] = pkt.packNumber(uint64(math.Float32bits(float32(value))), 4)

0 comments on commit 78b1424

Please sign in to comment.