mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 18:40:38 +00:00
When validating assignment between two types, it's possible one of them is wrapped in a reverse_type, if it comes, for example, from the type associated with a clustering column. When checking for weak assignment the types are correctly unwrapped, but not when checking for an exact match, which this patch fixes. Technically, the receiver is never a reversed_type for the current callers, but this is the morally correct implementation, as the type being reversed or not plays no role in assignment. Tests: unit(release) Fixes #3789 Signed-off-by: Duarte Nunes <duarte@scylladb.com> Message-Id: <20180927223201.28152-1-duarte@scylladb.com>