summaryrefslogtreecommitdiff
path: root/jstests/dbcase2.js
blob: 57e43bceab2b70b6ab14d88d49a7220999f22b62 (plain)
1
2
3
4
5
6
7
8
9
// 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" ) );