コード例 #1
0
 /**
  * @override
  */
 public function quote($value, $type = \PDO::PARAM_STR)
 {
     $val = parent::quote($value, $type);
     // Fix for a driver version terminating all values with null byte
     $val = rtrim($val, "");
     return $val;
 }
コード例 #2
0
ファイル: Connection.php プロジェクト: neteasy-work/hkgbf_crm
 /**
  * @override
  */
 public function quote($value, $type = \PDO::PARAM_STR)
 {
     $val = parent::quote($value, $type);
     // Fix for a driver version terminating all values with null byte
     if (strpos($val, "") !== false) {
         $val = substr($val, 0, -1);
     }
     return $val;
 }
コード例 #3
0
ファイル: Connection.php プロジェクト: TuxCoffeeCorner/tcc
 /**
  * {@inheritdoc}
  */
 public function quote($value, $type = \PDO::PARAM_STR)
 {
     if (\PDO::PARAM_BOOL === $type) {
         if ($value) {
             return 'true';
         } else {
             return 'false';
         }
     }
     return parent::quote($value, $type);
 }