]> granicus.if.org Git - php/commitdiff
MFH: Fix tests (use a in-memory database not a file called memory)
authorJohannes Schlüter <johannes@php.net>
Wed, 3 Dec 2008 11:00:31 +0000 (11:00 +0000)
committerJohannes Schlüter <johannes@php.net>
Wed, 3 Dec 2008 11:00:31 +0000 (11:00 +0000)
ext/pdo_sqlite/tests/bug44327_2.phpt
ext/pdo_sqlite/tests/bug44327_3.phpt
ext/pdo_sqlite/tests/debugdumpparams_001.phpt
ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt

index 0e704c5732253bc1383c222bdbfd794ddce5b111..4add0730dcf653eb7c8b33014f591e0dd2bb3841 100644 (file)
@@ -7,7 +7,7 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
 --FILE--
 <?php
 
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
 
 $x = $db->query('select 1 as queryString');
 var_dump($x, $x->queryString);
index 4d704c3d65e2b0766733c047b03f1343c2b0d0f0..86f56428761ea34b893f41d1e394e729aaa67f8e 100644 (file)
@@ -7,7 +7,7 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
 --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);
index c263eb143b1b6f3ee42e02f3b8a4170c4f0e1edc..3e51b532372d0137128356bdb8be4d414599e120 100644 (file)
@@ -7,7 +7,7 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
 --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);
index aa268a93302d618ef0f519a2f125de8bdc313505..9596aea30bf06c00c102bc985a204bcc79af119f 100644 (file)
@@ -3,7 +3,7 @@ PDO_sqlite: Testing sqliteCreateAggregate()
 --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)');
 
index 8a93002e676de0c40b3164bee977037948d1c98a..c742c0a9e9574291d3b90a77a63a16721b526c65 100644 (file)
@@ -3,7 +3,7 @@ PDO_sqlite: Testing sqliteCreateFunction()
 --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)');
 
index 8fc309d94bd25ae4b68b2b1a8a40ccac148322c6..a4ed2b535581b132dce33f3ded4c15fa7576d07e 100644 (file)
@@ -3,7 +3,7 @@ PDO_sqlite: Testing lastInsertId()
 --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")');
index 75f41698709be3b101a539086ad973945574b5cf..52474405118e7aad9696f4514211fa641224e7e0 100644 (file)
@@ -3,7 +3,7 @@ PDO_sqlite: Testing transaction
 --FILE--
 <?php
 
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
 
 $db->beginTransaction();