summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-14 05:33:29 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-14 05:33:29 -0400
commit67d63366cb1c7e1bc528f625c28437ca19ab927e (patch)
tree88975d4beef29e3230c560021e012be65991cb7b /src
parent7bbca2bff5f750e52ba3d452c6569556e857284d (diff)
downloadfork-ledger-67d63366cb1c7e1bc528f625c28437ca19ab927e.tar.gz
fork-ledger-67d63366cb1c7e1bc528f625c28437ca19ab927e.tar.bz2
fork-ledger-67d63366cb1c7e1bc528f625c28437ca19ab927e.zip
Surround command-line queries with implicit parens
Diffstat (limited to 'src')
-rw-r--r--src/predicate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/predicate.cc b/src/predicate.cc
index e46b55c2..df0aee13 100644
--- a/src/predicate.cc
+++ b/src/predicate.cc
@@ -184,7 +184,7 @@ string args_to_predicate_expr(value_t::sequence_t::const_iterator begin,
begin++;
}
- return expr.str();
+ return std::string("(") + expr.str() + ")";
}
} // namespace ledger