Code

store, frontend: Let lookups support arbitrary expressions for comparison.
authorSebastian Harl <sh@tokkee.org>
Mon, 28 Jul 2014 19:16:14 +0000 (21:16 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 28 Jul 2014 19:21:03 +0000 (21:21 +0200)
commita077fb06b0cf27ca51477c76d5520d0c814af8df
tree04235c49ac35880bfe588c6c0a070eb2cf26a7b2
parentd50007810e6b5278e9b0af174b4bc7e964150f67
store, frontend: Let lookups support arbitrary expressions for comparison.

… rather than simple values.

When comparing object names, the expression has to evaluate to a (constant)
string but conditional attribute comparison supports arbitrary expressions.

Expressions are only evaluated when using them during a comparison even though
we only support constant expressions so far. This will be optimized in the
future.
src/core/store-private.h
src/core/store_lookup.c
src/frontend/grammar.y
src/include/core/store.h
t/unit/core/store_lookup_test.c