/** * @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; }
/** * @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; }
/** * {@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); }