tried to verify your problem
wrote the following [quick&dirty] test (in my ruby-parser)
180 it "update strange text", focus:true do
181 strange_text = { strange_text: "'@type':'d','a':'some \\ text'"}
182
183 res= @r.create_or_update_document o_class: @rest_class , set: {
a_new_property: 36 } , where: {con_id: 346, symbol: 'EWQrGZ' } do
184 strange_text # <<< ----- strange text is inserted into the
database
185 end
## res is the response from the database
186 expect( res.strange_text ).to eq strange_text[:strange_text]
## lets be shure, reload the document by using the rid
187 document_from_db = @r.get_document res.rid
## and perform the test once more
188 expect( document_from_db.strange_text ).to eq
strange_text[:strange_text]
189 end
14:35:51 - INFO - Running: spec/lib/rest_spec.rb
Run options: include {:focus=>true}
REST::OrientDB
document-handling
D, [2015-06-16T14:35:53.037385 #89231] DEBUG -- REST::Base#initialize:
property a_new_property assigned to REST::Model::Documebntklasse10
D, [2015-06-16T14:35:53.037697 #89231] DEBUG -- REST::Base#initialize:
property con_id assigned to REST::Model::Documebntklasse10
D, [2015-06-16T14:35:53.037967 #89231] DEBUG -- REST::Base#initialize:
property symbol assigned to REST::Model::Documebntklasse10
D, [2015-06-16T14:35:53.038185 #89231] DEBUG -- REST::Base#initialize:
property strange_text assigned to REST::Model::Documebntklasse10
update strange text
Finished in 1.21 seconds (files took 0.34114 seconds to load)
1 example, 0 failures
Anything works fine.
Thus – your programming environment is not setup correctly
--
---
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.