We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13694d8 commit db9e073Copy full SHA for db9e073
tests/default/data/doctrine-dbal.php
@@ -218,4 +218,11 @@ public function dateParameter(Connection $conn)
218
$fetchResult = $conn->fetchOne($query, [date('Y-m-d', strtotime('-3hour'))]);
219
assertType('int|false', $fetchResult);
220
}
221
+
222
+ public function customTypeParameters(Connection $conn)
223
+ {
224
+ $stmt = $conn->prepare('SELECT count(*) AS c FROM typemix WHERE c_datetime=:last_dt');
225
+ $result = $stmt->execute(['dt' => new \DateTime()] /*, ['dt' => Types::DATETIME_MUTABLE]*/); // XXX use bound parameter types instead
226
+ assertType('Doctrine\DBAL\Result', $result);
227
+ }
228
0 commit comments