Permalink
Browse files

fixes issue #38

  • Loading branch information...
1 parent 487df86 commit 3e6394f8512df6f3928894b7df216f6b9264ee84 Phil Bayfield committed Jan 11, 2011
Showing with 9 additions and 2 deletions.
  1. +2 −1 README.markdown
  2. +1 −1 mysql.go
  3. +6 −0 mysql_statement.go
View
@@ -1,4 +1,4 @@
-GoMySQL Version 0.2.7
+GoMySQL Version 0.2.8
=====================
@@ -7,6 +7,7 @@ Revision History
0.2.x series [current]
+* 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.
* 0.2.6 - Replaced buffer checks in prepared statements, similar to change in 0.2.5, more robust method to handle end of packets.
* 0.2.5 - Fixes issue #10, removed buffer check from query function as no longer needed.
View
@@ -18,7 +18,7 @@ import (
)
const (
- Version = "0.2.7"
+ Version = "0.2.8"
DefaultPort = 3306
DefaultSock = "/var/run/mysqld/mysqld.sock"
MaxPacketSize = 1 << 24
View
@@ -496,6 +496,12 @@ func (stmt *MySQLStatement) getPrepareResult() (err os.Error) {
if mysql.Logging {
log.Print("End of param packets")
}
+ if stmt.result.FieldCount == 0 {
+ stmt.result.fieldsEOF = true
+ if mysql.Logging {
+ log.Print("End of field packets (automatic, no fields in result)")
+ }
+ }
} else if !stmt.result.fieldsEOF {
stmt.result.fieldsEOF = true
if mysql.Logging {

0 comments on commit 3e6394f

Please sign in to comment.