Skip to content

Commit

Permalink
sqlsrv: use properly capitalized schema table name
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach authored Mar 26, 2024
1 parent a0a552c commit d04066f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platforms/SqlServerPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d04066f

Please sign in to comment.