Skip to content
Snippets Groups Projects
Commit d4b3ee3c authored by Stanislav Zudin's avatar Stanislav Zudin Committed by Vladimir Davydov
Browse files

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
parent ebc508f5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment