diff options
author | Johannes Schlüter <johannes@php.net> | 2008-12-03 11:00:31 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2008-12-03 11:00:31 +0000 |
commit | 76b988475acacd3eed13b9a55e50b3d6039cdbba (patch) | |
tree | db86650214cd961913cc12afe8cda204adac51c3 | |
parent | b9653b8358be22015121e642bca0c2cb9fae99f5 (diff) | |
download | php-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.phpt | 2 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/bug44327_3.phpt | 2 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/debugdumpparams_001.phpt | 2 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt | 2 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt | 2 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt | 2 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt | 2 |
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(); |