https://github.com/dolmen/go-mysql-parsetime-bug
Test case for a bug of the mysql driver for golang
https://github.com/dolmen/go-mysql-parsetime-bug
Last synced: over 1 year ago
JSON representation
Test case for a bug of the mysql driver for golang
- Host: GitHub
- URL: https://github.com/dolmen/go-mysql-parsetime-bug
- Owner: dolmen
- Created: 2016-01-15T14:43:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-15T16:03:40.000Z (over 10 years ago)
- Last Synced: 2024-10-06T02:04:14.870Z (almost 2 years ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Test case for https://github.com/go-sql-driver/mysql
6fd058ce0d6b7ee43174e80d5a3e7f483c4dfbe5
Shows that parseTime option is not able to roundtrip time.Time values
with sub-second precision.
Server: mysql 5.6
Example output (expecting time.Time for both column):
```
2016/01/15 15:57:38 SELECT NOW(), ? FROM DUAL
column 0: time.Time 2016-01-15 15:57:39 +0000 UTC
column 1: []uint8 [50 48 49 54 45 48 49 45 49 53 32 49 52 58 53 55 58 51 56 46 56 49 55 51 57] 2016-01-15 14:57:38.81739
```