Connection.php 460 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Doctrine\DBAL\Driver\DrizzlePDOMySql;
  3. use Doctrine\DBAL\Driver\PDOConnection;
  4. use Doctrine\DBAL\ParameterType;
  5. /**
  6. * @deprecated
  7. */
  8. class Connection extends PDOConnection
  9. {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public function quote($value, $type = ParameterType::STRING)
  14. {
  15. if ($type === ParameterType::BOOLEAN) {
  16. return $value ? 'true' : 'false';
  17. }
  18. return parent::quote($value, $type);
  19. }
  20. }