summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filters.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 0111daf0..8e8bf1ec 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -256,10 +256,8 @@ namespace {
switch (value.type()) {
case value_t::BOOLEAN:
- case value_t::DATETIME:
- case value_t::DATE:
case value_t::INTEGER:
- temp.cast(value_t::AMOUNT);
+ temp.in_place_cast(value_t::AMOUNT);
// fall through...
case value_t::AMOUNT:
@@ -271,6 +269,8 @@ namespace {
flags |= XACT_EXT_COMPOUND;
break;
+ case value_t::DATETIME:
+ case value_t::DATE:
default:
assert(false);
break;