Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0.0
-
Fix Version/s: None
-
Component/s: library
-
Security Level: Public
-
Labels:None
-
Environment:Mac OSX, couchbase (1.1.2)
Description
Unexpected CAS error:
Expected output from:
cb.default_format = :document
cb.set("trans1", "{'karen': '400', 'dipti': '800', 'status':'init' }")=> 360287970189639680
cb.cas("trans1") do |val|
val["new"] = "new"
val
end
Would be {'karen': '400', 'dipti': '800', 'status':'init', 'new': 'new' }
but it returns:
IndexError: string not matched
from (irb):7:in `[]='
This is based on the rdoc example:
c.default_format = :document
c.set("foo", {"bar" => 1})
c.cas("foo") do |val|
val["baz"] = 2
val
end
c.get("foo") #=> {"bar" => 1, "baz" => 2}
Expected output from:
cb.default_format = :document
cb.set("trans1", "{'karen': '400', 'dipti': '800', 'status':'init' }")=> 360287970189639680
cb.cas("trans1") do |val|
val["new"] = "new"
val
end
Would be {'karen': '400', 'dipti': '800', 'status':'init', 'new': 'new' }
but it returns:
IndexError: string not matched
from (irb):7:in `[]='
This is based on the rdoc example:
c.default_format = :document
c.set("foo", {"bar" => 1})
c.cas("foo") do |val|
val["baz"] = 2
val
end
c.get("foo") #=> {"bar" => 1, "baz" => 2}
Activity
- All
- Comments
- Work Log
- History
- Activity
- Gerrit Reviews
Sergey Avseyev
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
Sergey Avseyev
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |