mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
prepare_expression treats receiver as an optional argument, it can be set to nullptr and the preparation should still succeed when it's possible to infer the type of an expression. preparing a bind_variable requires the receiver to be present, because it doesn't contain any information about the type of the bound value. Added a check that the receiver is present. Allowing to prepare a bind_variable without the receiver present was a bug. Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>