summaryrefslogtreecommitdiff
path: root/jstests/dbcase.js
blob: ff7da6ad5151d1fd540aeb417cd84bbf22b960f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

a = db.getSisterDB( "test_dbnamea" )
b = db.getSisterDB( "test_dbnameA" )

a.dropDatabase();
b.dropDatabase();

a.foo.save( { x : 1 } )
assert.eq( 0 , db.getLastErrorObj().code || 0 , "A" )

b.foo.save( { x : 1 } )
assert.eq( 13297 , db.getLastErrorObj().code || 0 , "A" )

a.dropDatabase();
b.dropDatabase();