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

Support other string functions and operators #179

Merged
merged 9 commits into from
Oct 10, 2024

Conversation

rlaiola
Copy link
Contributor

@rlaiola rlaiola commented Oct 20, 2022

Reference issue

None.

What does this implement/fix?

This PR adds support to some useful string functions and operators found in major RDBMSs. These are:

  • REGEXP: Whether string matches regular expression
  • RLIKE: Synonym for REGEXP
  • REPEAT(): Repeat a string the specified number of times
  • REPLACE(): Replace occurrences of a specified string
  • REVERSE(): Reverse the characters in a string

The implementation includes unit tests and has been based mainly on the MySQL specification, although PostgreSQL an SQL Server follow a very similar approach (references included below).

How to test this PR?

Test it live at https://rlaiola.github.io/relax/calc/local/uibk/local/0. For automated tests visit https://rlaiola.github.io/relax/test.html

References

@rlaiola rlaiola changed the title Support more string functions and operators Support other string functions and operators Oct 20, 2022
@DeepakKumarKhatri
Copy link

This is really a good PR.
I was searching for these methods.
I hope the maintainer merges it soon.

@rlaiola rlaiola closed this Sep 28, 2023
@rlaiola rlaiola deleted the stringexp branch September 28, 2023 10:56
@rlaiola rlaiola restored the stringexp branch September 28, 2023 10:57
@rlaiola rlaiola reopened this Sep 28, 2023
@evazangerle
Copy link
Contributor

thank you

@rlaiola
Copy link
Contributor Author

rlaiola commented Oct 4, 2024

@evazangerle it seems that this PR has not been merged into development.

@evazangerle evazangerle reopened this Oct 10, 2024
@evazangerle evazangerle merged commit 477ad7a into dbis-uibk:development Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants