Exemple #1
0
 /**
  *  things to before the connection is established
  *  
  *  this is to allow the db interface to add options or whatnot before connecting      
  *   
  *  @since  1-11-12
  */
 protected function preConnect(MingoConfig $config)
 {
     // http://stackoverflow.com/questions/1566602/is-set-character-set-utf8-necessary
     // another: 'SET CHARACTER SET UTF8';
     $config->setOption(PDO::MYSQL_ATTR_INIT_COMMAND, sprintf('SET NAMES %s', $this->charset));
 }