Improve parsing DynamoDB begins_with expression
A query fails if it has a space between `begins_with` and `(`, for example: ```begins_with (#1, :1)``` Fix #1996
This commit is contained in:
parent
2af4e7a63a
commit
6ea60012fc
@ -481,7 +481,7 @@ class DynamoHandler(BaseResponse):
|
||||
]
|
||||
elif "begins_with" in range_key_expression:
|
||||
range_comparison = "BEGINS_WITH"
|
||||
range_values = [value_alias_map[range_key_expression_components[1]]]
|
||||
range_values = [value_alias_map[range_key_expression_components[-1]]]
|
||||
else:
|
||||
range_values = [value_alias_map[range_key_expression_components[2]]]
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user