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

MATCHES function does not parse string variable #8612

Closed
mpomet opened this issue Oct 18, 2018 · 1 comment
Closed

MATCHES function does not parse string variable #8612

mpomet opened this issue Oct 18, 2018 · 1 comment
Assignees
Milestone

Comments

@mpomet
Copy link

mpomet commented Oct 18, 2018

OrientDB Version: 2.2.35

OS: linux alpine

Expected behavior

MATCHES work with all string

Actual behavior

MATCHES do not accept variable and throws Error parsing query

Steps to reproduce

SELECT title, '(.*)text(.*)' as myregex 
FROM Item 
WHERE "test text test" MATCHES myregex

MATCHES statement should evaluate parameters and compute them if they are strings.

@mpomet mpomet changed the title MATCHES function does not accept vars MATCHES function does not parse string variable Oct 19, 2018
@luigidellaquila luigidellaquila self-assigned this Oct 19, 2018
@luigidellaquila luigidellaquila added this to the 3.0.10 milestone Oct 19, 2018
@luigidellaquila
Copy link
Member

Hi @mpomet

Thank you for reporting, I added support for any expression on the right, but I could do it only on v 3.0.x and following. Unfortunately I cannot backport the fix to v 2.2, as it still has the legacy SQL executor

Thanks

Luigi

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

No branches or pull requests

2 participants