johannesWed Dec 3 11:00:19 2008 UTC
Modified files:
/php-src/ext/pdo_sqlite/tests bug44327_2.phpt bug44327_3.phpt
debugdumpparams_001.phpt
pdo_sqlite_createaggregate.phpt
pdo_sqlite_createfunction.phpt
pdo_sqlite_lastinsertid.phpt
pdo_sqlite_transaction.phpt
Log:
Fix tests (use a in-memory database not a file called memory)
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/bug44327_2.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/pdo_sqlite/tests/bug44327_2.phpt
diff -u php-src/ext/pdo_sqlite/tests/bug44327_2.phpt:1.2
php-src/ext/pdo_sqlite/tests/bug44327_2.phpt:1.3
--- php-src/ext/pdo_sqlite/tests/bug44327_2.phpt:1.2Mon Nov 3 22:22:25 2008
+++ php-src/ext/pdo_sqlite/tests/bug44327_2.phptWed Dec 3 11:00:19 2008
@@ -7,7 +7,7 @@
--FILE--
?php
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
$x = $db-query('select 1 as queryString');
var_dump($x, $x-queryString);
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/bug44327_3.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/pdo_sqlite/tests/bug44327_3.phpt
diff -u php-src/ext/pdo_sqlite/tests/bug44327_3.phpt:1.1
php-src/ext/pdo_sqlite/tests/bug44327_3.phpt:1.2
--- php-src/ext/pdo_sqlite/tests/bug44327_3.phpt:1.1Mon Nov 3 23:43:51 2008
+++ php-src/ext/pdo_sqlite/tests/bug44327_3.phptWed Dec 3 11:00:19 2008
@@ -7,7 +7,7 @@
--FILE--
?php
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
$x = $db-query('select 1 as queryStringxx');
$y = $x-fetch(PDO::FETCH_LAZY);
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/debugdumpparams_001.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/pdo_sqlite/tests/debugdumpparams_001.phpt
diff -u php-src/ext/pdo_sqlite/tests/debugdumpparams_001.phpt:1.2
php-src/ext/pdo_sqlite/tests/debugdumpparams_001.phpt:1.3
--- php-src/ext/pdo_sqlite/tests/debugdumpparams_001.phpt:1.2 Wed Nov 5
23:39:09 2008
+++ php-src/ext/pdo_sqlite/tests/debugdumpparams_001.phpt Wed Dec 3
11:00:19 2008
@@ -7,7 +7,7 @@
--FILE--
?php
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
$x= $db-prepare('select :a, :b, ?');
$x-bindValue(':a', 1, PDO::PARAM_INT);
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.1
php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.2
--- php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.1Tue Dec
2 21:00:23 2008
+++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phptWed Dec
3 11:00:19 2008
@@ -3,7 +3,7 @@
--FILE--
?php
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
$db-query('CREATE TABLE IF NOT EXISTS foobar (id INT AUTO INCREMENT, name
TEXT)');
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.1
php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.2
--- php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.1 Tue Dec
2 21:00:23 2008
+++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt Wed Dec 3
11:00:19 2008
@@ -3,7 +3,7 @@
--FILE--
?php
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
$db-query('CREATE TABLE IF NOT EXISTS foobar (id INT AUTO INCREMENT, name
TEXT)');
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.1
php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.2
--- php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.1 Tue Dec
2 21:00:23 2008
+++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt Wed Dec 3
11:00:19 2008
@@ -3,7 +3,7 @@
--FILE--
?php
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
$db-query('CREATE TABLE IF NOT EXISTS foo (id INT AUTO INCREMENT, name
TEXT)');
$db-query('INSERT INTO foo VALUES (NULL, PHP)');
$db-query('INSERT INTO foo VALUES (NULL, PHP6)');
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt
diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt:1.1
php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt:1.2
---