Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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?

@ErikEJ
Copy link
Member Author

ErikEJ commented Feb 26, 2025

@roji RegEx on Azure is now in public preview - possible to get this out as a preview?

# for free to join this conversation on GitHub. Already have an account? # 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