Botond Dénes
aa9a582f4a
cql3: functions/castas_fcts: allow self-casting any type
...
Casting a type to itself doesn't make sense, but it is harmless so allow
it instead of reporting a confusing error message that makes even less
sense:
InvalidRequest: Error from server: code=2200 [Invalid query]
message="org.apache.cassandra.db.marshal.BooleanType cannot be cast
to org.apache.cassandra.db.marshal.BooleanType"
Note that some types already supported self-casting, this patch just
extends this to all types in a forward compatible way.
Fixes : #5102
Tests: unit(dev), manual test casting boolean to boolean.
Signed-off-by: Botond Dénes <bdenes@scylladb.com >
Message-Id: <20200408135041.854981-1-bdenes@scylladb.com >
2020-04-08 18:52:36 +03:00
..
2020-04-08 18:52:36 +03:00
2020-03-19 10:34:16 +02:00
2020-03-25 08:49:53 +02:00
2020-04-07 08:47:38 +03:00
2020-03-23 23:19:21 +03:00
2020-03-23 23:19:21 +03:00
2020-01-29 00:23:40 +02:00
2020-03-02 13:26:01 +01:00
2020-03-02 13:26:01 +01:00
2018-06-11 15:34:14 +03:00
2020-03-10 13:13:48 -07:00
2020-03-01 14:22:10 +01:00
2020-02-20 18:14:49 +02:00
2020-03-03 11:34:00 +01:00
2020-02-28 17:04:12 -08:00
2020-02-28 17:04:12 -08:00
2020-01-29 00:23:40 +02:00
2020-03-10 13:13:48 -07:00
2020-02-04 10:52:04 +02:00
2019-12-11 10:44:40 -08:00
2019-08-21 19:35:59 +02:00
2020-02-24 11:17:19 +03:00
2020-03-23 23:19:21 +03:00
2019-11-26 02:24:49 +03:00
2017-06-29 10:51:20 +02:00
2018-11-21 00:01:44 +02:00
2020-02-28 08:36:27 -08:00
2020-02-28 08:36:27 -08:00
2020-03-10 13:13:48 -07:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-03-10 13:13:48 -07:00
2020-02-20 18:14:49 +02:00
2019-07-04 10:54:30 +02:00
2019-10-22 17:07:33 +03:00
2018-06-11 15:34:13 +03:00
2020-02-16 17:23:36 +03:00
2020-02-16 17:23:36 +03:00
2020-03-26 12:46:03 +02:00
2020-03-23 23:19:21 +03:00
2020-02-20 18:14:49 +02:00
2020-03-03 11:34:00 +01:00
2018-06-25 09:21:47 +01:00
2020-02-16 17:23:36 +03:00
2020-03-03 11:34:00 +01:00
2017-11-27 12:14:24 -05:00
2019-01-08 13:16:36 +02:00
2018-02-14 14:15:57 -05:00
2020-03-10 13:13:48 -07:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-02-18 16:16:20 +02:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-02-20 18:14:49 +02:00
2020-03-10 13:13:48 -07:00
2020-03-10 13:13:48 -07:00
2020-03-10 13:13:48 -07:00
2020-03-04 13:28:16 +02:00
2019-11-21 12:08:49 +02:00
2019-12-21 16:56:42 +02:00
2020-03-16 09:21:06 +00:00
2019-10-28 21:12:52 +03:00
2020-03-03 11:34:00 +01:00
2020-03-10 13:13:48 -07:00
2020-02-16 17:24:14 +03:00
2019-01-08 13:16:36 +02:00
2019-01-08 13:16:36 +02:00
2020-03-23 23:19:21 +03:00
2019-01-08 13:16:36 +02:00
2020-02-18 20:13:10 +02:00
2020-02-18 20:13:10 +02:00