From df29efcb9c325fc4773dc637c8d485be71263d12 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 18 May 2021 00:42:13 +0100 Subject: Write year, not day twice --- lib/mysql_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3