diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-18 00:42:13 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-18 00:42:13 +0100 |
commit | df29efcb9c325fc4773dc637c8d485be71263d12 (patch) | |
tree | 117709ca3b9752d506facf710704bb89887bdcdf /lib | |
parent | Initial commit, still lots to do! (diff) | |
download | mygrate-df29efcb9c325fc4773dc637c8d485be71263d12.tar.bz2 mygrate-df29efcb9c325fc4773dc637c8d485be71263d12.tar.xz mygrate-df29efcb9c325fc4773dc637c8d485be71263d12.zip |
Write year, not day twice
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mysql_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mysql_types.cpp b/lib/mysql_types.cpp index fa4698d..7c530a7 100644 --- a/lib/mysql_types.cpp +++ b/lib/mysql_types.cpp @@ -166,7 +166,7 @@ namespace MyGrate::MySQL { Date d; d.day = bitslice(dint, 0, 6); d.month = bitslice(dint, 6, 4); - d.day = bitslice(dint, 10, 14); + d.year = bitslice(dint, 10, 14); return d; } |