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

T141 SIMILAR predicate support #137

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

makssent
Copy link

Fixes #41.

req: CREATE TABLE T141 (ROW_NUM NUMERIC(3) NOT NULL, ROW_NAME VARCHAR(25) NOT NULL, ROW_PHONE VARCHAR(14) CHECK (ROW_PHONE SIMILAR TO '([0-9]{3}) [0-9]{3}-[0-9]{4}' escape ''))

err: You have an error in your SQL syntax: CREATE TABLE T141 (ROW_NUM NUMERIC(3) NOT NULL ROW_NAME VARCHAR(25) NOT NULL ROW_PHONE VARCHAR(14) CHECK (ROW_PHONE SIMILAR TO '(0-9{3}) 0-9{3}-0-9{4}' escape '')) no viable alternative at input '(ROW_PHONESIMILAR' at line 1 position 119 near @28119:125='SIMILAR'<340>1:119

new err:
You have an error in your SQL syntax: no viable alternative at input '''

Error with part: " escape '\' "

@TedCraft TedCraft merged commit c762bc1 into red-soft-ru:shardingsphere-rdb Sep 15, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants