box: check constraint name against identifier rules
Currently, it is possible to create a constraint with a name that does not match the rules for identifiers. Fix this by validating them by identifier_check. Closes #7201 NO_DOC=bugfix NO_CHANGELOG=minor bug (cherry picked from commit 1d00b544)
Showing
- src/box/tuple_constraint_def.c 16 additions, 0 deletionssrc/box/tuple_constraint_def.c
- test/engine-luatest/gh_6436_complex_foreign_key_test.lua 10 additions, 0 deletionstest/engine-luatest/gh_6436_complex_foreign_key_test.lua
- test/engine-luatest/gh_6436_field_constraint_test.lua 13 additions, 0 deletionstest/engine-luatest/gh_6436_field_constraint_test.lua
- test/engine-luatest/gh_6436_field_foreign_key_test.lua 10 additions, 0 deletionstest/engine-luatest/gh_6436_field_foreign_key_test.lua
- test/engine-luatest/gh_6436_tuple_constraint_test.lua 10 additions, 0 deletionstest/engine-luatest/gh_6436_tuple_constraint_test.lua
Loading
Please register or sign in to comment