
Neo4j::Rails::Model.find incorrect behavior with negative numbers
Reported by Navaneeth | November 2nd, 2011 @ 07:02 AM
When doing
Neo4j::Rails::Model.find(-99), it return an object even though there is nothing with an id -99 exists in the database. Interestingly, for any negative numbers, it is doing the same.
The following works as expected and return nil
Neo4j::Rails::Model.find(:first, :conditions => {id => -99})
Comments and changes to this ticket
-
Andreas Ronge November 2nd, 2011 @ 10:08 AM
- Assigned user set to Andreas Ronge
Thanks for letting me know - yes, very strange indeed.
-
-
Andreas Ronge April 19th, 2012 @ 09:57 PM
- State changed from new to resolved
(from [f7cfb3ea14b0bd0901e133cfd88993c88c7c0984]) Release 2.0.0.alpha.7
bumped neo4j-core version to fix Rails-Neo4j config issue, closes #191
https://github.com/andreasronge/neo4j/commit/f7cfb3ea14b0bd0901e133...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Neo4j.rb is a graph database framework for JRuby.
It provides:
* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails