コード例 #1
0
 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'");
 }
コード例 #2
0
ファイル: db_oci_lite.php プロジェクト: marks2016/sso
 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'");
 }
コード例 #3
0
ファイル: db_sqlite.php プロジェクト: marks2016/sso
 public function Connect($dsn, $username = false, $password = false, $options = array())
 {
     $this->dbprefix = "";
     parent::Connect($dsn, $username, $password, $options);
 }
コード例 #4
0
ファイル: db_mysql.php プロジェクト: unicarehealth/sso-server
 public function Connect($dsn, $username = false, $password = false, $options = array())
 {
     parent::Connect($dsn, $username, $password, $options);
     // Set Unicode support.
     $this->Query("SET", "NAMES 'utf8'");
 }