Skip to content

Commit 4615006

Browse files
committed
Merge pull request #147 from go-sql-driver/byte_nil
Insert NULL for []byte(nil) values
2 parents 1429b99 + 32fb382 commit 4615006

File tree

4 files changed

+263
-221
lines changed

4 files changed

+263
-221
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changes:
55
- Go-MySQL-Driver now requires Go 1.1
66
- Connections now use the collation `utf8_general_ci` by default. Adding `&charset=UTF8` to the DSN should not be necessary anymore
77
- Made closing rows and connections error tolerant. This allows for example deferring rows.Close() without checking for errors
8+
- `byte(nil)` is now treated as a NULL value. Before it was treated like an empty string / `[]byte("")`.
89
- New Logo
910
- Changed the copyright header to include all contributors
1011
- Optimized the buffer for reading
@@ -28,6 +29,7 @@ Bugfixes:
2829
- Fixed MySQL 4.1 support: MySQL 4.1 sends packets with lengths which differ from the specification
2930
- Convert to DB timezone when inserting time.Time
3031
- Splitted packets (more than 16MB) are now merged correctly
32+
- Fixed empty string producing false nil values
3133

3234

3335
## 1.0 (2013-05-14)

0 commit comments

Comments
 (0)