Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private function Bind($To, $Value, $ParameterType)
 {
     $PDOParameterType = PDOParameterType::MapParameterType($ParameterType);
     return $this->Statement->bindValue($To, $Value, $PDOParameterType);
 }