lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvConnection.php 1 location
|
@@ 105-114 (lines=10) @@
|
102 |
|
* {@inheritDoc} |
103 |
|
* @license New BSD, code from Zend Framework |
104 |
|
*/ |
105 |
|
public function quote($value, $type=\PDO::PARAM_STR) |
106 |
|
{ |
107 |
|
if (is_int($value)) { |
108 |
|
return $value; |
109 |
|
} elseif (is_float($value)) { |
110 |
|
return sprintf('%F', $value); |
111 |
|
} |
112 |
|
|
113 |
|
return "'" . str_replace("'", "''", $value) . "'"; |
114 |
|
} |
115 |
|
|
116 |
|
/** |
117 |
|
* {@inheritDoc} |
lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php 1 location
|
@@ 123-131 (lines=9) @@
|
120 |
|
/** |
121 |
|
* {@inheritdoc} |
122 |
|
*/ |
123 |
|
public function quote($value, $type=\PDO::PARAM_STR) |
124 |
|
{ |
125 |
|
if (is_int($value) || is_float($value)) { |
126 |
|
return $value; |
127 |
|
} |
128 |
|
$value = str_replace("'", "''", $value); |
129 |
|
|
130 |
|
return "'" . addcslashes($value, "\000\n\r\\\032") . "'"; |
131 |
|
} |
132 |
|
|
133 |
|
/** |
134 |
|
* {@inheritdoc} |