summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc
index ae86eb7c..910a9140 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -1146,6 +1146,12 @@ void value_t::in_place_cast(type_t cast_type)
case AMOUNT:
set_amount(amount_t(as_string()));
return;
+ case DATE:
+ set_date(parse_date(as_string()));
+ return;
+ case DATETIME:
+ set_datetime(parse_datetime(as_string()));
+ return;
case MASK:
set_mask(as_string());
return;