From 40cbd35ba3855056987d2f7647f669e66f938979 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 21 Oct 2024 18:15:09 +0000 Subject: [PATCH] Switch to in-memory db for polyfill test. --- tests/SqliteMariaDbPolyfillTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SqliteMariaDbPolyfillTest.php b/tests/SqliteMariaDbPolyfillTest.php index 2a52885..3bf74d1 100644 --- a/tests/SqliteMariaDbPolyfillTest.php +++ b/tests/SqliteMariaDbPolyfillTest.php @@ -15,7 +15,7 @@ use Index\Db\Sqlite\{SqliteConnection,SqliteConnectionInfo,SqliteMariaDbPolyfill final class SqliteMariaDbPolyfillTest extends TestCase { public function testSqliteMariaDbPolyfill(): void { $dbPath = tempnam(sys_get_temp_dir(), 'ndx'); - $db = new SqliteConnection(SqliteConnectionInfo::createTemp()); + $db = new SqliteConnection(SqliteConnectionInfo::createMemory()); SqliteMariaDbPolyfill::apply($db); $result = $db->query('SELECT IF(1, "true", "false"), IF(0, "true", "false"), IF(NULL, "true", "false"), IF("beans", "true", "false")');