+2004-04-22 Juraj Skripsky <juraj@hotfeet.ch>
+
+ * Parser.jay: Allow computed expressions on left-hand side of
+ "like" operator.
+ Correct ordering for "is null" rule ("NOT IS NULL" => "IS NOT NULL").
+
2004-04-20 Juraj Skripsky <juraj@hotfeet.ch>
* Tokenizer.cs (ReadNumber): Correctly consume decimal point
{
$$ = new Comparison (Operation.EQ, (IExpression)$1, new Literal (null));
}
- | ColumnValue NOT IS NULL
+ | ColumnValue IS NOT NULL
{
$$ = new Comparison (Operation.NE, (IExpression)$1, new Literal (null));
}
;
LikePredicate
- : ColumnValue LIKE StringLiteral
+ : ArithExpr LIKE StringLiteral
{
$$ = new Like ((IExpression)$1, (string)$3);
}
- | ColumnValue NOT LIKE StringLiteral
+ | ArithExpr NOT LIKE StringLiteral
{
$$ = new Negation (new Like ((IExpression)$1, (string)$3));
}
;
%%
-}
\ No newline at end of file
+}