BETWEEN SYMMETRIC not supported
Issue #2990
resolved
It's a convenient comparison operation – see PostgreSQL chapter on comparison functions.
Comments (7)
-
repo owner -
reporter It's supported in both PostgreSQL and MariaDB – perhaps it could be a flag to the built-in
between
method? E.g.between(x, y, z, symmetric=True)
? The default is asymmetric, obviously. -
repo owner only if its in the SQL standard.
-
repo owner lucky ducks, it's in the SQL standard:
Specify a range comparison. Format <between predicate> ::= <row value predicand> <between predicate part 2> <between predicate part 2> ::= [ NOT ] BETWEEN [ ASYMMETRIC | SYMMETRIC ] <row value predicand> AND <row value predicand>
-
repo owner - changed status to resolved
- Added new flag :paramref:
.expression.between.symmetric
, when set to True renders "BETWEEN SYMMETRIC". Also added a new negation operator "notbetween_op", which now allows an expression like~col.between(x, y)
to render as "col NOT BETWEEN x AND y", rather than a parentheiszed NOT string. fixes#2990
→ <<cset e16ede8cae00>>
-
repo owner thanks for the suggestion
-
repo owner - changed milestone to 1.0.xx
- Log in to comment
here's an easy recipe for that: