Ejemplo n.º 1
0
 protected function resolve(array $params)
 {
     $params = parent::resolve($params);
     if (is_null($params['MultipleActiveResultSets'])) {
         unset($params['MultipleActiveResultSets']);
     }
     return $params;
 }
Ejemplo n.º 2
0
 protected function resolve(array $params)
 {
     $params = parent::resolve($params);
     if (!empty($params['unix_socket'])) {
         unset($params['host']);
         unset($params['port']);
     } else {
         unset($params['unix_socket']);
     }
     return $params;
 }
Ejemplo n.º 3
0
 protected function resolve(array $params)
 {
     $params = parent::resolve($params);
     if (isset($params['host']) && $params['host'] != null) {
         $dbname = '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)' . '(HOST=' . $params['host'] . ')';
         if (isset($params['port'])) {
             $dbname .= '(PORT=' . $params['port'] . ')';
         } else {
             $dbname .= '(PORT=1521)';
         }
         if (isset($params['service']) && $params['service'] == true) {
             $dbname .= '))(CONNECT_DATA=(SERVICE_NAME=' . $params['dbname'] . ')))';
         } else {
             $dbname .= '))(CONNECT_DATA=(SID=' . $params['dbname'] . ')))';
         }
         $params['dbname'] = $dbname;
     }
     unset($params['host']);
     unset($params['port']);
     unset($params['service']);
     return $params;
 }