public function Connect($dsn, $username = false, $password = false, $options = array()) { $this->lastid = 0; parent::Connect($dsn, $username, $password, $options); // Set Unicode support. $this->Query("SET", "client_encoding TO 'UTF-8'"); }
public function Connect($dsn, $username = false, $password = false, $options = array()) { $this->lastid = 0; parent::Connect($dsn, $username, $password, $options); // Convert DB NULL values into empty strings for use in code. $this->dbobj->setAttribute(\PDO::ATTR_ORACLE_NULLS, \PDO::NULL_TO_STRING); // Converts all uppercase table names into lowercase table names. $this->dbobj->setAttribute(\PDO::ATTR_CASE, \PDO::CASE_LOWER); // Set Oracle session variables to use standard date formats. $this->Query("SET", "NLS_DATE_FORMAT='YYYY-MM-DD'"); $this->Query("SET", "NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS'"); // Set Unicode support. // TODO: Figure out unicode support for Oracle //$this->Query("SET", "NLS_LANGUAGE='UTF8'"); }
public function Connect($dsn, $username = false, $password = false, $options = array()) { parent::Connect($dsn, $username, $password, $options); // Set Unicode support. $this->Query("SET", "NAMES 'utf8'"); }
public function Connect($dsn, $username = false, $password = false, $options = array()) { $this->dbprefix = ""; parent::Connect($dsn, $username, $password, $options); }