sql: make default constraint names be consistent
If during creation of constraint its name is not specified, then it is generated automatically. Occasionally, default names for each type of constraint turn out to be different. This patch makes them follow the same pattern: "shortcut"_unnamed_"table_name"_"ordinal_numb". For instance: fk_unnamed_T1_1 or ck_unnamed_T1_3 etc
Showing
- src/box/sql/build.c 4 additions, 5 deletionssrc/box/sql/build.c
- test/sql-tap/check.test.lua 16 additions, 16 deletionstest/sql-tap/check.test.lua
- test/sql-tap/fkey1.test.lua 1 addition, 1 deletiontest/sql-tap/fkey1.test.lua
- test/sql-tap/fkey2.test.lua 8 additions, 8 deletionstest/sql-tap/fkey2.test.lua
- test/sql-tap/sql-errors.test.lua 2 additions, 2 deletionstest/sql-tap/sql-errors.test.lua
- test/sql-tap/table.test.lua 8 additions, 8 deletionstest/sql-tap/table.test.lua
- test/sql/foreign-keys.result 1 addition, 2 deletionstest/sql/foreign-keys.result
Please register or sign in to comment