doctrine/dbal

listTables in SQLite connection returns empty array

Closed this issue · 1 comments

Q A
Version 4.1.1

Support Question

I have a simple database I'm testing, like 10 tables.

I use this code to connect:

$connectionParams = [
	'dbname' => 'my_db',
	'user' => '',
	'password' => '',
	'host' => '127.0.0.1',
	'driver' => 'pdo_sqlite',
];

$conn = DriverManager::getConnection($connectionParams);
$platform = $conn->getDatabasePlatform();
$platform->registerDoctrineTypeMapping('enum', 'string');
$this->sm = $conn->createSchemaManager();

The connection here is correctly set.

$tables = $this->sm->listTables();

$tables is an empty array.

P.S. If I use mysql driver everything works.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.