You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+1-12Lines changed: 1 addition & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,11 @@
1
-
<<<<<<< HEAD
2
-
GoMySQL Version 0.2.10
3
-
======================
4
-
=======
5
1
GoMySQL Version 0.3.0-beta-1
6
2
============================
7
-
>>>>>>> dev
8
3
9
4
10
5
Revision History
11
6
----------------
12
7
13
-
0.3.x series [development]
8
+
0.3.x series [testing]
14
9
15
10
* 0.3.0-beta-1 - Added full statement and functions. Refactored packet handlers into generic functions. Added new BindResult/Fetch method to get result data from prepared statements. Added type conversions for similar types to populate the result pointers with values from the row data. Added simple type conversion to standard queries. Added automatic reconnect for a select number of operations. Added greater number of client errors from the MySQL manual. Added date/time types to allow date/time elements to be stored as integers and ints, making them more useful.
16
11
* 0.3.0-alpha-3 - Added new error structs ClientError and ServerError. Replaced majority of os.Error/os.NewError functionality with MySQL specific ClientError objects. Server error responses now return a ServerError. Removed Client.Errno and Client.Error. Added deferred error processing to reader, writer and packets to catch and errors and always return a ClientError. Rewrote auto reconnect to check for specific MySQL error codes.
@@ -19,15 +14,9 @@ Revision History
19
14
20
15
0.2.x series [current]
21
16
22
-
<<<<<<< HEAD
23
-
* 0.2.12 - Forgot to bump the version constant.
24
-
* 0.2.11 - Fix a bug in getPrepareResult() causing queries returning no fields (e.g. DROP TABLE ...) to hang.
25
-
* 0.2.10 - Compatability update for Go release.2011-01-20
26
-
=======
27
17
* 0.2.12 - Fix a bug in getPrepareResult() causing queries returning no fields (e.g. DROP TABLE ...) to hang.
28
18
* 0.2.11 - Skipped
29
19
* 0.2.10 - Compatibility update for Go release.2011-01-20
30
-
>>>>>>> dev
31
20
* 0.2.9 - Added support for MySQL 5.5
32
21
* 0.2.8 - Fixes issue #38.
33
22
* 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.
returnos.NewError("An error occured receiving packet from MySQL")
675
-
}
676
-
// Read the next byte to identify the type of packet
677
-
c, err:=mysql.reader.ReadByte()
678
-
mysql.reader.UnreadByte()
679
-
switch {
680
-
// Unknown packet, remove it from the buffer
681
-
default:
682
-
bytes:=make([]byte, hdr.length)
683
-
_, err=io.ReadFull(mysql.reader, bytes)
684
-
// Set error response
685
-
iferr!=nil {
686
-
err=os.NewError("An unknown packet was received from MySQL, in addition an error occurred when attempting to read the packet from the buffer: "+err.String());
687
-
} else {
688
-
err=os.NewError("An unknown packet was received from MySQL")
0 commit comments