Skip to content

Commit 8111ee3

Browse files
committed
Merge pull request go-sql-driver#249 from arnehormann/microsecs
Microseconds
2 parents 0b00042 + 8441731 commit 8111ee3

File tree

7 files changed

+486
-290
lines changed

7 files changed

+486
-290
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## HEAD
2+
3+
Changes:
4+
5+
- Use decimals field from MySQL to format time types
6+
7+
Bugfixes:
8+
9+
- Enable microsecond resolution on TIME, DATETIME and TIMESTAMP
10+
11+
112
## Version 1.2 (2014-06-03)
213

314
Changes:

const.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package mysql
1111
const (
1212
minProtocolVersion byte = 10
1313
maxPacketSize = 1<<24 - 1
14-
timeFormat = "2006-01-02 15:04:05"
14+
timeFormat = "2006-01-02 15:04:05.999999"
1515
)
1616

1717
// MySQL constants documentation:

0 commit comments

Comments
 (0)