1

I'm trying to get itemName() from a simpleDB select query using boto, but doing select itemName() from domain where attribute = 'foo' limit 10 gives me an result set with 10 items but they are all empty.

I've also tried select `itemName()` from domain where attribute = 'foo' and select itemName from domain where attribute = 'foo'.

Calin Don
  • 865
  • 2
  • 11
  • 19

1 Answers1

5

The Item objects returned are empty because you are not asking for any attributes in the query. The itemName is not really an attribute. It is stored as a special value on the Item object that is accessible as item.name.

garnaat
  • 44,310
  • 7
  • 123
  • 103