summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-10 02:44:16 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-10 02:44:16 -0500
commit39532bdf357e0aa696c7cc50787d3bb9e68d4ede (patch)
treea77680497cbb642a64999252e3a6644dd4e23b47 /src
parenta779751fc77a3e8703093737618d9778dd95e0ea (diff)
downloadfork-ledger-39532bdf357e0aa696c7cc50787d3bb9e68d4ede.tar.gz
fork-ledger-39532bdf357e0aa696c7cc50787d3bb9e68d4ede.tar.bz2
fork-ledger-39532bdf357e0aa696c7cc50787d3bb9e68d4ede.zip
Automated transactions now use report query syntax
This returns their behavior back very close to what 2.x accepts.
Diffstat (limited to 'src')
-rw-r--r--src/textual.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 5a9e2165..1d0d7998 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -36,6 +36,7 @@
#include "post.h"
#include "account.h"
#include "option.h"
+#include "query.h"
#include "pstream.h"
#include "pool.h"
#include "session.h"
@@ -508,8 +509,8 @@ void instance_t::automated_xact_directive(char * line)
}
std::auto_ptr<auto_xact_t> ae
- (new auto_xact_t(predicate_t(skip_ws(line + 1),
- keep_details_t(true, true, true))));
+ (new auto_xact_t(query_t(string(skip_ws(line + 1)),
+ keep_details_t(true, true, true))));
reveal_context = false;