You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regular expression property attribute regexp not working #799
The regexp property seems to not work (at least via studio or console). This may just be a formatting issue of the regex string, which is not documented yet.
Expected behavior
succesful insert.
Actual behavior
ERROR: The property 'url' does not match the regular expression 'regexp'. Field value is: a, document: @doc[url=a]
Steps to reproduce
CREATE DOCUMENT TYPE doc;
CREATE PROPERTY doc.str STRING (regexp '.*');
INSERT INTO doc SET str = 'a';
@lvca Could you provide an example of a string property with regexp constraint which should work, to rule out a simple formatting issue on my side and as a test case? Thank you
Activity
gramian commentedon Jan 27, 2023
@lvca Could you provide an example of a string property with
regexpconstraint which should work, to rule out a simple formatting issue on my side and as a test case? Thank youlvca commentedon Jan 27, 2023
I found this in our test cases:
gramian commentedon Jan 27, 2023
Yeah found that too, but it did not work for me via studio or console if I remember correctly.
lvca commentedon Jan 27, 2023
Maybe there is something from SQL. I'm writing a new test case for it.
gramian commentedon Jan 27, 2023
Thank you!
lvca commentedon Jan 27, 2023
Reproduced with
CREATE PROPERTY. Checking the issue and a quick fix.fix: regexp property was not set from SQL alter/create property
lvca commentedon Jan 27, 2023
Fixed. Also I found setting the regexp and other attributes were missing from the ALTER PROPERTY command.
gramian commentedon Jan 27, 2023
My initial tests works now with the expected syntax. Great! Thanks @lvca
lvca commentedon Jan 28, 2023
Great! Thanks for the report
chore(studio-deps-dev)(deps-dev): bump copy-webpack-plugin from 11.0.…
fix: regexp property was not set from SQL alter/create property
chore(studio-deps-dev)(deps-dev): bump copy-webpack-plugin from 11.0.…