Files
mongo/jstests/basic3.js
Eliot Horowitz bc38646deb imported tests
2009-01-26 23:28:26 -05:00

18 lines
246 B
JavaScript

db = connect( "test" );
t = db.getCollection( "foo" );
t.find( { "a.b" : 1 } ).toArray();
ok = false;
try{
t.save( { "a.b" : 5 } );
ok = false;
}
catch ( e ){
ok = true;
}
assert( ok , ". in names aren't allowed doesn't work" );