public function __construct(&$dsn, &$username, &$password, &$driver_options) { if (!extension_loaded('mssql')) { throw new PDOException('could not find extension'); } parent::__construct($dsn, $username, $password, $driver_options); $this->driver_quote_type = 1; }
public function __construct(&$dsn, &$username, &$password, &$driver_options) { if (!extension_loaded('pgsql')) { throw new PDOException('could not find extension'); } $this->driver_options[phppdo_base::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT] = false; parent::__construct($dsn, $username, $password, $driver_options); $this->driver_param_type = 2; $this->driver_quote_type = 1; }
public function __construct(&$dsn, &$username, &$password, &$driver_options) { if (!extension_loaded('oci8')) { throw new PDOException('could not find extension'); } $this->driver_param_type = 1; $this->driver_quote_type = 1; if (!isset($driver_options[PDO::ATTR_PREFETCH])) { $driver_options[PDO::ATTR_PREFETCH] = @ini_get('oci8.default_prefetch'); } parent::__construct($dsn, $username, $password, $driver_options); }
public function __construct(&$dsn, &$username, &$password, &$driver_options) { if (!extension_loaded('mysql')) { throw new PDOException('could not find extension'); } // set default values $this->driver_options[phppdo_base::MYSQL_ATTR_USE_BUFFERED_QUERY] = 1; $this->driver_options[phppdo_base::MYSQL_ATTR_LOCAL_INFILE] = false; $this->driver_options[phppdo_base::MYSQL_ATTR_INIT_COMMAND] = ''; $this->driver_options[phppdo_base::MYSQL_ATTR_READ_DEFAULT_FILE] = false; $this->driver_options[phppdo_base::MYSQL_ATTR_READ_DEFAULT_GROUP] = false; $this->driver_options[phppdo_base::MYSQL_ATTR_MAX_BUFFER_SIZE] = 1048576; $this->driver_options[phppdo_base::MYSQL_ATTR_DIRECT_QUERY] = 1; parent::__construct($dsn, $username, $password, $driver_options); }