#250 - DynamoDB - Add check for valid query keyconditionexpression
This commit is contained in:
parent
e261ddb063
commit
db206e994b
2 changed files with 28 additions and 0 deletions
|
|
@ -457,6 +457,9 @@ class DynamoHandler(BaseResponse):
|
|||
range_comparison = None
|
||||
range_values = []
|
||||
|
||||
if '=' not in hash_key_expression:
|
||||
return self.error('com.amazonaws.dynamodb.v20111205#ValidationException',
|
||||
'Query key condition not supported')
|
||||
hash_key_value_alias = hash_key_expression.split("=")[1].strip()
|
||||
# Temporary fix until we get proper KeyConditionExpression function
|
||||
hash_key = value_alias_map.get(hash_key_value_alias, {'S': hash_key_value_alias})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue