Skip to content
Permalink
Browse files
Remove lowercase restriction on mongo database names.
  • Loading branch information
philbooth committed Aug 5, 2013
1 parent dc59458 commit 448624562375cb7193c709787d8b92093739e70a
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/mongo.js
@@ -18,14 +18,12 @@ exports.Connection = internals.Connection = function (options) {
- empty string is not valid
- cannot contain space, "*<>:|?
- should be all lowercase
- limited to 64 bytes (after conversion to UTF-8)
- admin, local and config are reserved
*/

Hoek.assert(options.partition !== 'admin' && options.partition !== 'local' && options.partition !== 'config', 'Cache partition name cannot be "admin", "local", or "config" when using MongoDB');
Hoek.assert(options.partition.length < 64, 'Cache partition must be less than 64 bytes when using MongoDB');
Hoek.assert(options.partition === options.partition.toLowerCase(), 'Cache partition name must be all lowercase when using MongoDB');

this.settings = options;
this.client = null;
@@ -300,4 +298,4 @@ internals.Connection.prototype.drop = function (key, callback) {
return callback();
});
});
};
};

0 comments on commit 4486245

Please sign in to comment.