2010-06-16 03:28:52 +02:00
|
|
|
|
2010-08-23 18:54:02 +02:00
|
|
|
a = db.getSisterDB( "dbcasetest_dbnamea" )
|
|
|
|
b = db.getSisterDB( "dbcasetest_dbnameA" )
|
2010-06-16 03:28:52 +02:00
|
|
|
|
|
|
|
a.dropDatabase();
|
|
|
|
b.dropDatabase();
|
|
|
|
|
|
|
|
a.foo.save( { x : 1 } )
|
2010-07-22 21:39:20 +02:00
|
|
|
z = db.getLastErrorObj();
|
|
|
|
assert.eq( 0 , z.code || 0 , "A : " + tojson(z) )
|
2010-06-16 03:28:52 +02:00
|
|
|
|
|
|
|
b.foo.save( { x : 1 } )
|
2010-07-22 21:39:20 +02:00
|
|
|
z = db.getLastErrorObj();
|
|
|
|
assert.eq( 13297 , z.code || 0 , "B : " + tojson(z) )
|
2010-06-16 03:28:52 +02:00
|
|
|
|
2010-08-01 10:08:36 +02:00
|
|
|
print( db.getMongo().getDBNames() )
|
|
|
|
|
2010-06-21 19:17:05 +02:00
|
|
|
a.dropDatabase();
|
|
|
|
b.dropDatabase();
|
2010-08-01 10:08:36 +02:00
|
|
|
|
|
|
|
print( db.getMongo().getDBNames() )
|
|
|
|
|
|
|
|
|