php-src/ext/pdo_sqlite/tests/pdo_sqlite_empty_filename.phpt
othercorey 108bd4417a
Add pdo_sqlite tests for empty filename and in-memory uri (#7662)
pdo_sqlite already supports empty filenames and shared in-memory DBs. Add tests for them.
2021-11-24 14:49:10 +01:00

20 lines
348 B
PHP

--TEST--
PDO_sqlite: Testing empty filename
--EXTENSIONS--
pdo_sqlite
--FILE--
<?php
// create with empty filename
$db = new PDO('sqlite:');
var_dump($db->exec('CREATE TABLE test1 (id INT);'));
// create with empty URI
$db = new PDO('sqlite:file:?cache=shared');
var_dump($db->exec('CREATE TABLE test1 (id INT);'));
?>
--EXPECT--
int(0)
int(0)