From 06aaacbe8ff6164c7b8b9bc9e19209016aedef22 Mon Sep 17 00:00:00 2001 From: chme Date: Mon, 28 Jan 2019 20:45:03 +0100 Subject: [PATCH] [smartpl] Fix wrong where clause for date field queries with "before" keyword --- src/SMARTPL2SQL.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMARTPL2SQL.g b/src/SMARTPL2SQL.g index 8fef34ea..2d81ac56 100644 --- a/src/SMARTPL2SQL.g +++ b/src/SMARTPL2SQL.g @@ -217,7 +217,7 @@ expression returns [ pANTLR3_STRING result, pANTLR3_STRING orderby, pANTLR3_STRI $result = $DATETAG.text->factory->newRaw($DATETAG.text->factory); $result->append8($result, "f."); $result->appendS($result, $DATETAG.text->toUTF8($DATETAG.text)); - $result->append8($result, " > "); + $result->append8($result, " < "); $result->append8($result, str); } | ENUMTAG IS ENUMVAL