Permalink
Browse files

updated for use with latest Go release.r57.1

  • Loading branch information...
1 parent 149bdc1 commit 3c1f4115658a98e1070bbb7d98ad78715978e280 Philio committed May 6, 2011
Showing with 4 additions and 13 deletions.
  1. +2 −11 README.markdown
  2. +1 −1 mysql.go
  3. +1 −1 statement.go
View
@@ -1,22 +1,13 @@
-GoMySQL Version 0.3.1
+GoMySQL Version 0.3.2
=====================
-Important: Which release to use?
---------------------------------
-
-The latest Go weekly build made changes to the net package, which are implemented in GoMySQL 0.3.1.
-
-For release weekly.2011-04-04 builds and later, use GoMySQL 0.3.1 (the master branch).
-
-For releases prior to weekly.2011-04-04 (including the latest release build), use GoMySQL 0.3.0 (the release branch).
-
-
Revision History
----------------
0.3.x series [current]
+* 0.3.2 - Updated to support release.r57.1 Go build, change to usage of reflect.
* 0.3.1 - Updated to support weekly.2011-04-04 Go build, change to usage of net.Dial.
* 0.3.0 - No changes since RC2.
* 0.3.0-RC-2 - Convert additional string types (issue 47). Added a check for NULL fields in the row packet handler to prevent a crash in strconv (issue 48).
View
@@ -21,7 +21,7 @@ import (
// Constants
const (
// General
- VERSION = "0.3.1"
+ VERSION = "0.3.2"
DEFAULT_PORT = "3306"
DEFAULT_SOCKET = "/var/run/mysqld/mysqld.sock"
MAX_PACKET_SIZE = 1<<24 - 1
View
@@ -195,7 +195,7 @@ func (s *Statement) BindParams(params ...interface{}) (err os.Error) {
d = append(d, param.([]byte)...)
// Other types
default:
- return &ClientError{CR_UNSUPPORTED_PARAM_TYPE, s.c.fmtError(CR_UNSUPPORTED_PARAM_TYPE_STR, reflect.NewValue(param).Type(), k)}
+ return &ClientError{CR_UNSUPPORTED_PARAM_TYPE, s.c.fmtError(CR_UNSUPPORTED_PARAM_TYPE_STR, reflect.ValueOf(param).Type(), k)}
}
// Append values
s.paramType = append(s.paramType, []byte{byte(t), 0x0})

0 comments on commit 3c1f411

Please sign in to comment.