Skip to content

Commit

Permalink
updated for use with latest Go release.r57.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Philio committed May 6, 2011
1 parent 149bdc1 commit 3c1f411
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
13 changes: 2 additions & 11 deletions README.markdown
@@ -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 Revision History
---------------- ----------------


0.3.x series [current] 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.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 - 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). * 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).
Expand Down
2 changes: 1 addition & 1 deletion mysql.go
Expand Up @@ -21,7 +21,7 @@ import (
// Constants // Constants
const ( const (
// General // General
VERSION = "0.3.1" VERSION = "0.3.2"
DEFAULT_PORT = "3306" DEFAULT_PORT = "3306"
DEFAULT_SOCKET = "/var/run/mysqld/mysqld.sock" DEFAULT_SOCKET = "/var/run/mysqld/mysqld.sock"
MAX_PACKET_SIZE = 1<<24 - 1 MAX_PACKET_SIZE = 1<<24 - 1
Expand Down
2 changes: 1 addition & 1 deletion statement.go
Expand Up @@ -195,7 +195,7 @@ func (s *Statement) BindParams(params ...interface{}) (err os.Error) {
d = append(d, param.([]byte)...) d = append(d, param.([]byte)...)
// Other types // Other types
default: 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 // Append values
s.paramType = append(s.paramType, []byte{byte(t), 0x0}) s.paramType = append(s.paramType, []byte{byte(t), 0x0})
Expand Down

0 comments on commit 3c1f411

Please sign in to comment.