mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 04:06:59 +00:00
The situation with preparing bind_variable is a bit strange, there are four shapes of bind variables and receiver behaviour is not in line with other types. To prepare a bind_variable for a list of IN values for an int column the current code requires us to pass a receiver of type int. This is counterintuitive, to prepare a string we pass a receiver with string type, so to prepare list<int> we should pass a receiver of type list<int>, not just int. This commit changes the behaviour in two ways: - Shape of bind_variable doesn't matter anymore - The bind_variable gets the receiver passed to prepare_expression, no more list<receiver> magic. Other variants of bind_variable_x_prepare_expression are not removed yet because they are needed by prepare_expression_mutlti_column. They will be removed later, along with bind_variable::shape_type. Signed-off-by: cvybhu <jan.ciolek@scylladb.com>