Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cql3: Fix value_for when restriction is impossible
Previously, single_column_restrictions::value_for() assumed that a column's restriction specifies exactly one value for the column. But since 37ebe52, multiple equalities on the same column are allowed, so the restriction could be a conjunction of conflicting equalities (eg, c=1 AND c=0). That violates an assert and crashes Scylla. This patch fixes value_for() by gracefully handling the impossible-restriction case. Fixes #7772 Signed-off-by: Dejan Mircevski <dejan@scylladb.com>
- Loading branch information