summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/account.cc4
-rw-r--r--test/regress/647D5DB9.test2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/account.cc b/src/account.cc
index c3fc80f1..58812db9 100644
--- a/src/account.cc
+++ b/src/account.cc
@@ -380,9 +380,7 @@ expr_t::ptr_op_t account_t::lookup(const symbol_t::kind_t kind,
break;
case 'd':
- if (fn_name == "date")
- return WRAP_FUNCTOR(get_wrapper<&get_latest>);
- else if (fn_name == "depth")
+ if (fn_name == "depth")
return WRAP_FUNCTOR(get_wrapper<&get_depth>);
else if (fn_name == "depth_spacer")
return WRAP_FUNCTOR(get_wrapper<&get_depth_spacer>);
diff --git a/test/regress/647D5DB9.test b/test/regress/647D5DB9.test
index 9b6d8510..7e53f23b 100644
--- a/test/regress/647D5DB9.test
+++ b/test/regress/647D5DB9.test
@@ -11,5 +11,5 @@ P 2009/01/31 02:18:02 AAPL $4
P 3000/01/01 02:18:02 APPL $100
test bal --end 2008/12/31 -JV Equities
-2008-06-30 1500
+2008-12-31 1500
end test