PHP mysqlnd svn commit: r1116 - trunk/tests/ext/pdo
Author: uwendel
Date: 2007-10-19 13:39:08 +0200 (Fri, 19 Oct 2007)
New Revision: 1116
Modified:
trunk/tests/ext/pdo/pdo_test.inc
Log:
Lets have a way to get a clear line not messed up with failing DROP TABLE statements.
Modified: trunk/tests/ext/pdo/pdo_test.inc
- trunk/tests/ext/pdo/pdo_test.inc 2007-10-19 07:23:01 UTC (rev 1115)
+++ trunk/tests/ext/pdo/pdo_test.inc 2007-10-19 11:39:08 UTC (rev 1116)
@@ -19,7 +19,7 @@
class PDOTest {
// create an instance of the PDO driver, based on
// the current environment
- static function factory($classname = 'PDO') {
+ static function factory($classname = 'PDO', $drop_test_tables = true) {
$dsn = getenv('PDOTEST_DSN'); $user = getenv('PDOTEST_USER'); $pass = getenv('PDOTEST_PASS');
@@ -46,8 +46,10 @@
'test2',
'classtypes'
);
- foreach ($test_tables as $table) {
- $db->exec("DROP TABLE $table");
+ if ($drop_test_tables) {
+ foreach ($test_tables as $table) {
+ $db->exec("DROP TABLE $table");
+ }
}
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
--
MySQL Code Commits Mailing List
For list archives:
http://lists.mysql.com/commits
To unsubscribe:
http://lists.mysql.com/commits?unsub=lists@pantek.com
Received on Fri Oct 19 07:39:19 2007
This archive was generated by hypermail 2.1.8
: Thu Jul 03 2008 - 10:14:06 EDT
|