diff options
author | Siegfried-Angel Gevatter Pujals <siegfried@gevatter.com> | 2012-10-08 15:49:18 +0200 |
---|---|---|
committer | Siegfried-Angel Gevatter Pujals <siegfried@gevatter.com> | 2012-10-08 15:49:18 +0200 |
commit | 24b1b0c3ea071eb4751da43c586ea2249d7607c7 (patch) | |
tree | 6d0a835784e98f83eb8ae3d6f6b3634e666c63d2 /src | |
parent | b737cd19dc5672fac993c4a777b9b6605b382f00 (diff) | |
download | zeitgeist-24b1b0c3ea071eb4751da43c586ea2249d7607c7.tar.gz |
More CurrentOrigin implementation. Various fixes.
Diffstat (limited to 'src')
-rw-r--r-- | src/db-reader.vala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/db-reader.vala b/src/db-reader.vala index e99fea24..0cd87d75 100644 --- a/src/db-reader.vala +++ b/src/db-reader.vala @@ -785,6 +785,22 @@ public class DbReader : Object "subj_id_current", val, negated); } + // Current Origin + if (!is_empty_string (subject_template.current_origin)) + { + string val = subject_template.current_origin; + bool like = parse_wildcard (ref val); + bool negated = parse_negation (ref val); + assert_no_noexpand (val, "subject current_origin"); + + if (like) + where.add_wildcard_condition ( + "subj_current_origin", val, negated); + else + where.add_text_condition_subquery ( + "subj_current_origin", val, negated); + } + // Subject storage if (!is_empty_string (subject_template.storage)) { |