Permalink
Browse files

closer to attachments. a lot of refactoring that needed done, like co…

…nflict detection
  • Loading branch information...
1 parent db3e6df commit cb66c892c1e5b53db8654f10d77e180e8fe9c3c5 @dscape committed Apr 4, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 models/document.xqy
View
@@ -153,8 +153,6 @@ declare function doc:create( $database, $uri, $json ) {
( if ($a//_id) then () else
<_id type="string">{$uri}</_id>) )
let $revFromId := ( $jsonWithId//_rev ) [1]
- let $_ := xdmp:log($doc)
- let $_ := xdmp:log($revFromId)
let $jsonWithRevs := if ($revFromId)
then mem:node-replace( $revFromId, $rev )
else mem:node-insert-after( ($jsonWithId//_id) [1], $rev )

0 comments on commit cb66c89

Please sign in to comment.