mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
26 lines
466 B
JavaScript
26 lines
466 B
JavaScript
|
|
/*
|
|
TODO SERVER-2111
|
|
a = db.getSisterDB( "dbcasetest_dbnamea" )
|
|
b = db.getSisterDB( "dbcasetest_dbnameA" )
|
|
|
|
a.dropDatabase();
|
|
b.dropDatabase();
|
|
|
|
a.foo.save( { x : 1 } )
|
|
z = db.getLastErrorObj();
|
|
assert.eq( 0 , z.code || 0 , "A : " + tojson(z) )
|
|
|
|
b.foo.save( { x : 1 } )
|
|
z = db.getLastErrorObj();
|
|
assert.eq( 13297 , z.code || 0 , "B : " + tojson(z) )
|
|
|
|
print( db.getMongo().getDBNames() )
|
|
|
|
a.dropDatabase();
|
|
b.dropDatabase();
|
|
|
|
print( db.getMongo().getDBNames() )
|
|
*/
|
|
|