Switch to in-memory db for polyfill test.
This commit is contained in:
parent
2f577d97cc
commit
40cbd35ba3
1 changed files with 1 additions and 1 deletions
|
@ -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")');
|
||||
|
|
Loading…
Reference in a new issue