diff options
Diffstat (limited to 'jstests/dbcase2.js')
-rw-r--r-- | jstests/dbcase2.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/jstests/dbcase2.js b/jstests/dbcase2.js new file mode 100644 index 0000000..57e43bc --- /dev/null +++ b/jstests/dbcase2.js @@ -0,0 +1,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" ) ); |