Duarte Nunes
5e7bb20c8a
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 >
2018-09-28 07:08:19 +03:00
..
2018-08-09 18:07:12 +02:00
2018-09-17 20:35:55 +03:00
2018-09-28 07:08:19 +03:00
2018-09-25 17:01:04 +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
2018-07-18 12:28:06 +01: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-08-16 15:34:22 +03: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-07-18 12:28:06 +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-08-16 15:12:27 +03: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-07-18 12:28:06 +01:00
2018-07-18 12:28:06 +01:00
2018-07-18 12:28:06 +01:00
2018-07-18 12:28:06 +01: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-07-18 12:28:06 +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-15 10:38:09 +01:00
2018-07-26 12:37:06 +01:00
2018-08-15 10:37:13 +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
2018-07-26 12:17:04 +01:00
2018-07-26 12:37:20 +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-07-18 12:28:06 +01:00
2018-07-18 12:28:06 +01:00
2018-08-16 19:32:43 +01:00
2018-04-30 00:27:23 +02:00
2018-08-09 13:53:44 +01: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
2018-09-26 15:23:41 +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-20 21:39:37 +01:00
2018-07-18 12:28:06 +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
2018-07-18 12:28:06 +01:00
2018-04-23 12:00:57 +02:00
2017-05-10 12:38:18 +03:00