Skip to content

Commit c00de32

Browse files
committed
mdssvc: add support for parsing date ranges
Example: InRange(kMDItemContentCreationDate,$time.iso(2024-12-31T23:00:00Z),$time.iso(2025-12-31T23:00:00Z)) BUG: https://bugzilla.samba.org/show_bug.cgi?id=15930 Signed-off-by: Ralph Boehme <[email protected]> Reviewed-by: Volker Lendecke <[email protected]> Autobuild-User(master): Ralph Böhme <[email protected]> Autobuild-Date(master): Mon Oct 20 10:59:03 UTC 2025 on atb-devel-224
1 parent 1239e5a commit c00de32

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

selftest/knownfail.d/samba.unittests.mdsparser_es

Lines changed: 0 additions & 1 deletion
This file was deleted.

source3/rpc_server/mdssvc/es_parser.y

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ FUNC_INRANGE OBRACE attribute COMMA WORD COMMA WORD CBRACE {
219219
} else {
220220
$$ = map_expr($3, '~', $5, $7);
221221
}
222+
}
223+
| FUNC_INRANGE OBRACE attribute COMMA isodate COMMA isodate CBRACE {
224+
if ($3 == NULL) {
225+
$$ = NULL;
226+
} else {
227+
$$ = map_expr($3, '~', $5, $7);
228+
}
222229
};
223230

224231
attribute:

0 commit comments

Comments
 (0)