Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SQL Server INFORMATION_SCHEMA with CS collation #237

Closed
jan-bures opened this issue Mar 26, 2024 · 2 comments
Closed

SQL Server INFORMATION_SCHEMA with CS collation #237

jan-bures opened this issue Mar 26, 2024 · 2 comments
Labels
Milestone

Comments

@jan-bures
Copy link

Describe the bug
When using DBAL on the SQL Server platform in a database with case-sensitive collation (specifically SQL_Czech_CP1250_CS_AS), the SqlServerPlatform::getTables method throws QueryException with the message "Invalid object name 'information_schema.tables'".

Expected behavior
This line should contain FROM [INFORMATION_SCHEMA].[TABLES] (other methods in the class already correctly use the uppercase name wrapped in square brackets).

Versions

  • Database: SQL Server 2017 CU29
  • Dbal: Dbal 5.0
@jan-bures jan-bures added the bug label Mar 26, 2024
@hrach
Copy link
Member

hrach commented Mar 26, 2024

d04066f

Thx for the report. I've just pushed the fix without testing it, so I hope it will work correctly. Plz let me know :)

@hrach hrach added this to the v5.0 milestone Mar 26, 2024
@jan-bures
Copy link
Author

Can confirm that fixed it, thanks for the quick fix!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants