From d04066f0fff52142c22949070f2a81e9e3596a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0kr=C3=A1=C5=A1ek?= Date: Tue, 26 Mar 2024 19:04:46 +0100 Subject: [PATCH] sqlsrv: use properly capitalized schema table name --- src/Platforms/SqlServerPlatform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Platforms/SqlServerPlatform.php b/src/Platforms/SqlServerPlatform.php index f48318c..d9af697 100644 --- a/src/Platforms/SqlServerPlatform.php +++ b/src/Platforms/SqlServerPlatform.php @@ -45,7 +45,7 @@ public function getTables(?string $schema = null): array { $result = $this->connection->query(/** @lang GenericSQL */ " SELECT TABLE_NAME, TABLE_TYPE, TABLE_SCHEMA - FROM information_schema.tables + FROM [INFORMATION_SCHEMA].[TABLES] WHERE TABLE_SCHEMA = COALESCE(%?s, SCHEMA_NAME()) ORDER BY TABLE_NAME ", $schema);