Author: uwendel
Date: 2008-04-23 12:38:37 +0200 (Wed, 23 Apr 2008)
New Revision: 1511
Modified:
trunk/tests/ext/pdo_mysql/pdo_mysql_stmt_bindparam.phpt
Log:
Trying to increase the code coverage
Modified: trunk/tests/ext/pdo_mysql/pdo_mysql_stmt_bindparam.phpt
===================================================================
--- trunk/tests/ext/pdo_mysql/pdo_mysql_stmt_bindparam.phpt 2008-04-23 10:29:49 UTC (rev
1510)
+++ trunk/tests/ext/pdo_mysql/pdo_mysql_stmt_bindparam.phpt 2008-04-23 10:38:37 UTC (rev
1511)
@@ -85,6 +85,17 @@
var_export($id, true), gettype($id),
var_export($label, true), gettype($label));
+ $stmt->closeCursor();
+
+ // Check that PDO cleans the line for us even if we don't fetch all rows
+ $stmt->execute();
+ $stmt->closeCursor();
+ $stmt->execute();
+ $stmt->fetch(PDO::FETCH_BOUND);
+ $stmt->closeCursor();
+ $stmt->execute();
+ unset($stmt);
+
} catch (PDOException $e) {
printf("[001] %s [%s] %s\n",
$e->getMessage(), $db->errorCode(), implode(' ', $db->errorInfo()));
| Thread |
|---|
| • PHP mysqlnd svn commit: r1511 - trunk/tests/ext/pdo_mysql | uwendel | 23 Apr |