mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
10 lines
342 B
JavaScript
10 lines
342 B
JavaScript
// SERVER-2111 Check that an in memory db name will block creation of a db with a similar but differently cased name.
|
|
|
|
a = db.getSisterDB( "dbcasetest_dbnamea" )
|
|
b = db.getSisterDB( "dbcasetest_dbnameA" )
|
|
|
|
a.c.count();
|
|
assert.throws( function() { b.c.count() } );
|
|
|
|
assert.eq( -1, db.getMongo().getDBNames().indexOf( "dbcasetest_dbnameA" ) );
|