Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Got rid of not operation caz it is not working

  • Loading branch information...
commit fd1c0177a671cfc479138131d456dee2693b1baa 1 parent 60be12b
Makoto Inoue authored
Showing with 1 addition and 18 deletions.
  1. +1 −18 lib/tc_adapter.rb
View
19 lib/tc_adapter.rb
@@ -91,24 +91,7 @@ def read_one(query)
item.get(value)
end
when :not # TODO: Think about better way to extract, as this is going through data one by one
- then
- # NotImplementedError{"The below code is not working as order is not always correct"}
- ruby_operator = "!="
- result = ""
- item_id = access_data(query.model, property.name) do |item|
- raw_data = BDBCUR::new(item)
- raw_data.first
- while key = raw_data.key
- if eval("raw_data.key #{ruby_operator} value")
- result = item.get(raw_data.key)
- break
- else
- raw_data.next
- end
- end
- result
- end
-
+ then NotImplementedError{"The below code is not working as order is not always correct"}
else
raise NotImplementedError("#{operator} is not implmented yet")
end
Please sign in to comment.
Something went wrong with that request. Please try again.