~ubuntu-branches/ubuntu/trusty/mongodb/trusty-proposed

« back to all changes in this revision

Viewing changes to jstests/update8.js

  • Committer: Bazaar Package Importer
  • Author(s): Antonin Kral
  • Date: 2010-01-29 19:48:45 UTC
  • Revision ID: james.westby@ubuntu.com-20100129194845-8wbmkf626fwcavc9
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
t = db.update8;
 
3
t.drop();
 
4
 
 
5
t.update( { _id : 1 , tags: {"$ne": "a"}}, {"$push": { tags : "a" } } , true )
 
6
assert.eq( { _id : 1 , tags : [ "a" ] } , t.findOne() , "A" );
 
7
 
 
8
t.drop()
 
9
//SERVER-390
 
10
//t.update( { "x.y" : 1 } , { $inc : { i : 1 } } , true );
 
11
//printjson( t.findOne() );