Duarte Nunes
b662a7f8a4
cql3/selection/selector: Unwrap types when validating assignment
...
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 >
(cherry picked from commit 5e7bb20c8a )
2018-09-28 14:34:08 +03:00
..
2018-08-12 15:05:43 +03:00
2018-08-26 18:05:33 +03:00
2018-09-28 14:34:08 +03:00
2018-09-17 20:16:01 +03:00
2017-08-22 15:06:18 +03:00
2016-04-08 08:12:47 +03:00
2016-04-08 08:12:47 +03:00
2017-07-27 09:39:58 +03:00
2016-04-08 08:12:47 +03:00
2018-06-11 15:34:14 +03:00
2016-04-08 08:12:47 +03:00
2016-04-08 08:12:47 +03:00
2017-08-10 15:01:10 -04:00
2016-04-08 08:12:47 +03:00
2018-04-30 00:27:23 +02:00
2018-04-30 00:27:23 +02:00
2016-05-16 14:13:31 +03:00
2016-05-16 14:13:31 +03:00
2017-09-03 11:07:27 +03:00
2018-05-31 15:51:11 +01:00
2018-04-30 00:27:23 +02:00
2017-08-10 15:01:10 -04:00
2018-05-27 12:40:27 +03:00
2018-07-25 14:53:35 +01:00
2017-07-01 12:13:44 +03:00
2017-06-29 10:51:20 +02:00
2016-04-08 08:12:47 +03:00
2016-04-08 08:12:47 +03:00
2016-04-08 08:12:47 +03:00
2017-05-21 12:26:15 +03:00
2018-05-31 15:51:11 +01:00
2018-04-23 12:00:56 +02:00
2018-05-31 15:51:11 +01:00
2018-04-23 12:00:56 +02:00
2016-12-20 13:06:11 +00:00
2017-02-22 09:19:46 +00:00
2017-07-02 20:06:50 +02:00
2018-05-31 15:51:11 +01:00
2016-10-06 15:42:37 +03:00
2017-11-03 09:10:43 +02:00
2018-06-11 15:34:13 +03:00
2016-04-08 08:12:47 +03:00
2018-08-21 18:23:10 +03:00
2018-06-12 10:57:05 -04:00
2018-09-27 14:05:37 +01:00
2018-06-11 15:34:14 +03:00
2016-04-08 08:12:47 +03:00
2016-12-20 13:06:11 +00:00
2018-06-25 09:21:47 +01:00
2017-04-24 10:40:12 +03:00
2018-06-25 09:21:47 +01:00
2017-11-27 12:14:24 -05:00
2017-11-27 12:14:24 -05:00
2018-02-14 14:15:57 -05:00
2018-05-31 15:51:11 +01:00
2018-04-23 12:00:56 +02:00
2018-04-23 14:08:04 +01:00
2018-04-30 00:27:23 +02:00
2018-05-15 17:59:53 +03:00
2017-01-26 13:50:04 +02:00
2017-04-17 23:03:15 +03:00
2016-12-20 13:06:11 +00:00
2017-07-26 19:28:35 +03:00
2016-04-08 08:12:47 +03:00
2018-06-25 09:21:47 +01:00
2018-03-15 13:34:44 +01:00
2018-08-21 17:35:14 +01:00
2018-05-31 15:51:11 +01:00
2017-01-27 09:24:36 +02:00
2017-01-26 13:50:04 +02:00
2016-04-08 08:12:47 +03:00
2016-04-08 08:12:47 +03:00
2018-04-30 00:27:23 +02:00
2017-01-30 10:49:31 +02:00
2018-04-23 12:00:57 +02:00
2017-05-10 12:38:18 +03:00