mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 20:16:43 +00:00
The implementation of Expected's BEGINS_WITH operator on blobs was incorrect, naively comparing the base64-encoded strings, which doesn't work. This patches fixes the code to compare the decoded strings. The reason why the BEGINS_WITH test missed this bug was that we forgot to check the blob case and only tested the string case; So this patch also adds the missing test - which reproduces this bug, and verifies its fix. Fixes #5457 Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20191211115526.29862-1-nyh@scylladb.com>