Hi All, I got a requirement to update few fields content in my database. Let me explain you clearly,
This is my sample Database having one column (which is of type Map) in V. @rid@versionLOCAL_TO_NON_LOCAL#-2:1 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:1> 0{"201":"125.5.221.18"}#-2:2 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:2> 0{"201":"125.5.221.14"}#-2:3 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:3> 0#-2:4 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:4> 0#-2:5 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:5> 0#-2:6 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:6> 0#-2:7 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:7> 0#-2:8 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:8> 0{"201":"125.5.221.16"}#-2:9 <http://localhost:2480/studio/index.html#/database/AOEGraphDB/browse/edit/-2:9> 0{"201":"125.5.221.17"} Now, I may want to update rows for the above field LOCAL_TO_NON_LOCAL with a different IP address. I am trying out the following query to do that, *update V set LOCAL_TO_NON_LOCAL=LOCAL_TO_NON_LOCAL.replace('125.5.221.17','165.5.221.17'),* But the above query is failing due to java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map I understand the column type is Map and replace() is for only String. Could you please give me another solution to update my map (LOCAL_TO_NON_LOCAL). Thanks, Rama Krishna. -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
