Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rel8.Expr.Text: the binary regular expression operator (~.) does not math the postgres operator #349

Open
Philoustic opened this issue Nov 13, 2024 · 2 comments

Comments

@Philoustic
Copy link

Hi

(~.) = binaryOperator "~."
should be
(~.) = binaryOperator "~"

@ocharles
Copy link
Contributor

Ah, this is a bit unfortunate. The Rel8 naming convention is generally that Rel8 operates are suffixed with a .. For example, ==., and /=.. But then this doesn't really hold, because there isn't a SQL == operator anyway! But I'm not convinced this is /wrong/, per se, but agree it's mighty confusing.

@Philoustic
Copy link
Author

Philoustic commented Nov 13, 2024

Hmm, well yeah, but this operator should correspond to the postgresql '' operator... but instead it generates a ''.' in the sql query (as shown by showQuery) which otherwise fails with an sql error at runtime.
On the other hand, the '~*' works well.

So, for me, it this seems to be a typo in the string. "~." should be "~" .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants