From e199e3863cd9faee5a69d0a18b8944cd9102ff58 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 15 Feb 2009 19:44:45 -0400 Subject: Fixed a call to value_t::cast to use in_place_cast --- src/filters.cc | 6 +++--- 1 file 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; -- cgit v1.2.3