lib/heirloom/archive/reader.rb in heirloom-0.6.1 vs lib/heirloom/archive/reader.rb in heirloom-0.7.0rc1
- old
+ new
@@ -55,10 +55,10 @@
def count
sdb.count @domain
end
def show
- query = sdb.select "select * from #{@domain} where itemName() = '#{@id}'"
+ query = sdb.select "select * from `#{@domain}` where itemName() = '#{@id}'"
items = query[@id] ? query[@id] : {}
Hash.new.tap do |hash|
items.each_pair.map do |key,value|
hash[key] = value.first
end