From 5f04a2d0aa06341d91369e6a86ebd3f7648ee0dd Mon Sep 17 00:00:00 2001 From: Vadym Kusakin Date: Tue, 25 Nov 2025 16:00:17 +0100 Subject: [PATCH] Fix for INFORMATION_SCHEMA requests --- src/ClickHouseSchemaManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ClickHouseSchemaManager.php b/src/ClickHouseSchemaManager.php index ab683fc..2852599 100644 --- a/src/ClickHouseSchemaManager.php +++ b/src/ClickHouseSchemaManager.php @@ -164,7 +164,7 @@ protected function selectTableNames(string $databaseName): Result <<<'SQL' SELECT table_name FROM INFORMATION_SCHEMA.TABLES - WHERE table_schema = ? AND table_type != 'BASE TABLE' + WHERE table_schema = ? AND table_type = 'BASE TABLE' SQL, [$databaseName] ); @@ -182,7 +182,7 @@ protected function selectTableColumns(string $databaseName, ?string $tableName = return $this->connection->executeQuery( \sprintf(<<<'SQL' - SELECT c.column_name AS field, + SELECT c.column_name AS name, c.table_name, c.column_type as `type`, c.is_nullable AS `null`,