Hi,

Try using:

        http://paste.pocoo.org/

Great for sending color formatted code snippets.

Marko.

http://markorodriguez.com

On Jun 16, 2011, at 2:48 PM, Niels Hoogeveen wrote:

> 
> Don't know how to send a properly formatted email.
> 
> Anyway, when storing a long value -134217728l in a node property, retrieving 
> the value of the property is again -134217728.
> When storing a long value -134217729l in a node property, retrieving the 
> value of that property overflows and 134217727 is returned.
> Kind regards,Niels Hoogeveen
> 
>> From: [email protected]
>> To: [email protected]
>> Date: Thu, 16 Jun 2011 22:40:24 +0200
>> Subject: [Neo4j] storing long values overflow
>> 
>> 
>> Using neo4j 1.4-SNAPSHOT it seems the storage or retrieval of long values no 
>> longer works properly.package com.multispective.snippet;import 
>> org.neo4j.kernel.EmbeddedGraphDatabase;import 
>> org.neo4j.graphdb.GraphDatabaseService;import 
>> org.neo4j.graphdb.Transaction;import org.neo4j.graphdb.Node;public class 
>> Test2 {     public static void main(String args[]){                         
>> GraphDatabaseService db = new  EmbeddedGraphDatabase("var/db");         
>> Transaction tx = db.beginTx();          try{                    Node n = 
>> db.getReferenceNode();                 long l = -134217728l;                 
>>   n.setProperty("testvalue", l);                  
>> System.out.println(n.getProperty("testvalue"));                 long l2 = 
>> -134217729l;                  n.setProperty("testvalue2", l2);               
>>          System.out.println(n.getProperty("testvalue2"));                    
>>     tx.success();           }finally{                       tx.finish();     
>>        }       }}Result:-134217728134217727Kind regards,Niels Hoogeveen      
>>                                     
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>                                         
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to