Author: uwendel
Date: 2008-04-03 17:16:06 +0200 (Thu, 03 Apr 2008)
New Revision: 1377
Modified:
trunk/tests/ext/pdo/pdo_stmt_close_cursor.phpt
Log:
.. to make the test pass with PDO_MYSQLND which is using a different default
Modified: trunk/tests/ext/pdo/pdo_stmt_close_cursor.phpt
===================================================================
--- trunk/tests/ext/pdo/pdo_stmt_close_cursor.phpt 2008-04-03 14:30:42 UTC (rev 1376)
+++ trunk/tests/ext/pdo/pdo_stmt_close_cursor.phpt 2008-04-03 15:16:06 UTC (rev 1377)
@@ -18,6 +18,9 @@
$db->exec('INSERT INTO test VALUES(1, \'A\', \'Group1\')');
$db->exec('INSERT INTO test VALUES(2, \'B\', \'Group2\')');
+if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql')
+ $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
+
try {
$stmt = $db->prepare('SELECT id FROM test WHERE id > ? ORDER BY id ASC');
| Thread |
|---|
| • PHP mysqlnd svn commit: r1377 - trunk/tests/ext/pdo | uwendel | 3 Apr |