Piotr Wojtczak
2150c0f7a2
cql: Check for timestamp correctness in USING TIMESTAMP statements
...
In certain CQL statements it's possible to provide a custom timestamp via the USING TIMESTAMP clause. Those values are accepted in microseconds, however, there's no limit on the timestamp (apart from type size constraint) and providing a timestamp in a different unit like nanoseconds can lead to creating an entry with a timestamp way ahead in the future, thus compromising the table.
To avoid this, this change introduces a sanity check for modification and batch statements that raises an error when a timestamp of more than 3 days into the future is provided.
Fixes #5619
Closes #7475
2020-11-01 11:01:24 +02:00
..
2020-10-22 17:24:49 +03:00
2020-09-04 17:27:30 +02:00
2020-10-18 13:12:11 +03:00
2020-10-11 17:21:15 +03:00
2020-11-01 11:01:24 +02:00
2020-05-30 09:49:29 +03:00
2020-05-30 09:49:29 +03:00
2020-05-30 09:49:29 +03:00
2020-09-04 17:27:30 +02:00
2020-09-04 17:27:30 +02:00
2020-09-04 17:27:30 +02:00
2020-09-04 17:27:30 +02:00
2020-02-20 18:14:49 +02:00
2020-06-08 11:28:57 +03:00
2020-04-27 12:47:42 +03:00
2020-04-27 12:47:42 +03:00
2020-05-30 09:49:29 +03:00
2020-08-20 12:51:36 +03:00
2020-07-21 10:33:49 -07:00
2019-12-11 10:44:40 -08:00
2019-08-21 19:35:59 +02:00
2020-09-04 17:27:30 +02:00
2020-08-18 13:45:20 +03:00
2019-11-26 02:24:49 +03: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-08-20 12:51:36 +03:00
2020-06-26 09:19:36 -04:00
2020-08-20 12:51:36 +03:00
2020-05-30 09:49:29 +03:00
2020-08-18 12:27:00 +02:00
2020-05-31 23:45:19 +03:00
2020-05-31 23:45:19 +03:00
2020-09-04 17:27:30 +02:00
2020-08-26 09:45:49 +02:00
2020-08-26 09:45:49 +02:00
2020-05-28 09:09:48 +02:00
2020-07-07 11:54:36 +02:00
2020-05-06 19:02:36 +03:00
2020-08-18 12:27:01 +02:00
2020-08-03 17:32:49 +02:00
2020-06-29 12:30:37 +03:00
2020-06-29 12:30:37 +03:00
2019-01-08 13:16:36 +02:00
2020-08-20 12:51:36 +03:00
2020-05-30 09:49:29 +03:00
2020-08-25 11:10:36 +03:00
2020-08-25 11:10:36 +03:00
2020-02-18 16:16:20 +02:00
2020-09-04 17:27:30 +02:00
2020-08-18 12:27:00 +02:00
2020-08-18 12:27:00 +02:00
2020-07-21 10:33:49 -07:00
2020-08-26 09:45:49 +02:00
2020-05-30 09:49:29 +03:00
2020-07-03 10:27:23 +02:00
2020-07-03 10:27:23 +02:00
2020-06-15 15:47:15 -07:00
2020-07-28 10:06:00 +03:00
2020-08-03 17:32:49 +02:00
2020-09-04 13:13:26 +03:00
2020-09-04 17:27:30 +02:00
2020-09-04 17:27:30 +02:00
2019-01-08 13:16:36 +02:00
2019-01-08 13:16:36 +02:00
2020-11-01 11:01:24 +02:00
2020-11-01 11:01:24 +02:00
2020-08-26 09:45:48 +02:00
2020-08-26 09:45:48 +02:00
2020-04-27 12:47:42 +03:00
2020-04-27 12:47:42 +03:00