mboudreau / Alternator

A mock DynamoDB that runs locally for testing purposes - DEPRECATED, PLEASE USE DYNAMODB LOCAL: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
Apache License 2.0
78 stars 39 forks source link

Check if the requested attribute exists. #29

Closed andresilva closed 12 years ago

andresilva commented 12 years ago

This is just a simple fix to check if the requested attribute exists before adding it to the response. This fixes issue #28 which I created last week.

I still haven't confirmed that this is correct behavior of Amazon's DynamoDB (the only confirmation I have is that my tests pass with the original client and they didn't with alternator. After this fix they're back to green with Alternator). I don't have the time to confirm this right now, but if you prefer I can check it when I have time, before you merge this.