lib/command/connection/select.js
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var index = parseInt(args[0]);
  if(isNaN(index) || index < 0 || index >= info.conf.databases) {
    throw DatabaseIndex;
  }
  // update the index with the integer value
  // connection expects an integer
  args[0] = index;
}
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var index = parseInt(args[0]);
  if(isNaN(index) || index < 0 || index >= info.conf.databases) {
    throw DatabaseIndex;
  }
  // update the index with the integer value
  // connection expects an integer
  args[0] = index;
}
function validate ( cmd , args , info ) { AbstractCommand . prototype . validate . apply ( this , arguments ) ; var index = parseInt ( args [ 0 ] ) ; if ( isNaN ( index ) || index < 0 || index >= info . conf . databases ) { throw DatabaseIndex ; } // update the index with the integer value // connection expects an integer args [ 0 ] = index ; }
Validate the SELECT command.
Validate the SELECT command .