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

Add support for built-in regex with Azure SQL DB #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ErikEJ
Copy link
Member

@ErikEJ ErikEJ commented May 27, 2024

fixes #156

(Pending GA of regex support in Azure SQL Database)

@roji

@ErikEJ ErikEJ requested a review from roji May 27, 2024 10:38
@ErikEJ ErikEJ marked this pull request as ready for review May 27, 2024 11:03
@ErikEJ
Copy link
Member Author

ErikEJ commented May 27, 2024

Verified on my activated server with:

CREATE TABLE Emails
(
ID int,
Email nvarchar(500) CONSTRAINT CK_Email CHECK (REGEXP_LIKE (Email, '^[^@]+@[^@]+$')),
)

INSERT INTO Emails VALUES (1, 'exy')

INSERT INTO Emails VALUES (2, 'ex@y')

@ErikEJ
Copy link
Member Author

ErikEJ commented Jun 17, 2024

@roji Thoughts?

@ErikEJ
Copy link
Member Author

ErikEJ commented Jan 2, 2025

@roji Possible to have this reviewed?

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.

Use new regex support on Azure SQL
1 participant