summaryrefslogtreecommitdiff
path: root/lib/mysql_types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql_types.cpp')
-rw-r--r--lib/mysql_types.cpp2
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;
}