public function Escape($Value, $ParameterType) { //PDO puts quotes around integers if ($ParameterType == Queries\ParameterType::Integer) { return (string) (int) $Value; } $PDOParameterType = PDOParameterType::MapParameterType($ParameterType); return $this->PDO->quote($Value, $PDOParameterType); }
private function Bind($To, $Value, $ParameterType) { $PDOParameterType = PDOParameterType::MapParameterType($ParameterType); return $this->Statement->bindValue($To, $Value, $PDOParameterType); }