sql: Duplicate key error for a non-unique index
Adds collation analysis into creating of a composite key for index tuples. The keys of secondary index consist of parts defined for index itself combined with parts defined for primary key. The duplicate parts are ignored. But the search of duplicates didn't take the collation into consideration. If non-unique secondary index contained primary key columns their parts from the primary key were omitted. This fact caused an issue. @locker: comments, renames. Closes #3537
Showing
- src/box/key_def.c 21 additions, 2 deletionssrc/box/key_def.c
- src/lib/coll/coll.c 24 additions, 0 deletionssrc/lib/coll/coll.c
- src/lib/coll/coll.h 12 additions, 0 deletionssrc/lib/coll/coll.h
- test/sql/collation.result 330 additions, 0 deletionstest/sql/collation.result
- test/sql/collation.test.lua 123 additions, 0 deletionstest/sql/collation.test.lua
Loading
Please register or sign in to comment