summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2008-12-03 11:00:31 +0000
committerJohannes Schlüter <johannes@php.net>2008-12-03 11:00:31 +0000
commit76b988475acacd3eed13b9a55e50b3d6039cdbba (patch)
treedb86650214cd961913cc12afe8cda204adac51c3
parentb9653b8358be22015121e642bca0c2cb9fae99f5 (diff)
downloadphp-git-76b988475acacd3eed13b9a55e50b3d6039cdbba.tar.gz
MFH: Fix tests (use a in-memory database not a file called memory)
-rw-r--r--ext/pdo_sqlite/tests/bug44327_2.phpt2
-rw-r--r--ext/pdo_sqlite/tests/bug44327_3.phpt2
-rw-r--r--ext/pdo_sqlite/tests/debugdumpparams_001.phpt2
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt2
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt2
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt2
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt2
7 files changed, 7 insertions, 7 deletions
diff --git a/ext/pdo_sqlite/tests/bug44327_2.phpt b/ext/pdo_sqlite/tests/bug44327_2.phpt
index 0e704c5732..4add0730dc 100644
--- a/ext/pdo_sqlite/tests/bug44327_2.phpt
+++ b/ext/pdo_sqlite/tests/bug44327_2.phpt
@@ -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);
diff --git a/ext/pdo_sqlite/tests/bug44327_3.phpt b/ext/pdo_sqlite/tests/bug44327_3.phpt
index 4d704c3d65..86f5642876 100644
--- a/ext/pdo_sqlite/tests/bug44327_3.phpt
+++ b/ext/pdo_sqlite/tests/bug44327_3.phpt
@@ -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);
diff --git a/ext/pdo_sqlite/tests/debugdumpparams_001.phpt b/ext/pdo_sqlite/tests/debugdumpparams_001.phpt
index c263eb143b..3e51b53237 100644
--- a/ext/pdo_sqlite/tests/debugdumpparams_001.phpt
+++ b/ext/pdo_sqlite/tests/debugdumpparams_001.phpt
@@ -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);
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
index aa268a9330..9596aea30b 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
@@ -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)');
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
index 8a93002e67..c742c0a9e9 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
@@ -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)');
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
index 8fc309d94b..a4ed2b5355 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
@@ -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")');
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt
index 75f4169870..5247440511 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt
@@ -3,7 +3,7 @@ PDO_sqlite: Testing transaction
--FILE--
<?php
-$db = new pdo('sqlite:memory');
+$db = new pdo('sqlite::memory:');
$db->beginTransaction();