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

Syntax of SUBSTRING( ... SIMILAR ...) in FB3, FB4 [DOC146] #148

Closed
firebird-automations opened this issue May 26, 2020 · 1 comment
Closed

Comments

@firebird-automations
Copy link

Submitted by: prenosil (prenosil)

The examples in README.substring_similar.txt are correct, like
substring('abcabc' similar 'a#⁠"bcab#⁠"c' escape '#⁠')

But the syntax description in this document is wrong:
<regular expression substring> ::= SUBSTRING(<value> FROM <similar pattern> ESCAPE <escape character>)

Also the syntax in FB3 Release Notes is wrong
SUBSTRING(<string> [NOT] SIMILAR TO <pattern> ESCAPE <char>)
(both NOT and TO)

@mrotteveel
Copy link
Member

Fixed recently in:

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

No branches or pull requests

3 participants