Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix binding unused parameter #6072

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

derrabus
Copy link
Member

Q A
Type bug
Fixed issues #5816

Summary

SQLServerSchemaManager::selectTableNames() binds a parameter that does not exist in the query. I don't know how we can make the CI catch this issue. This piece is covered by a test that fails on my machine, but apparently the SQL Server and driver setup that I use locally is more picky about extra parameter than the one we use on GitHub actions. 馃し馃徎

@greg0ire
Copy link
Member

I don't know how we can make the CI catch this issue.

I think it would involve using https://github.com/staabm/phpstan-dba

@derrabus derrabus merged commit 66bdc8b into doctrine:3.6.x Jun 28, 2023
74 checks passed
@derrabus derrabus deleted the bugfix/sqlsrv-list-tables branch June 28, 2023 09:52
derrabus added a commit that referenced this pull request Jun 28, 2023
* 3.6.x:
  PHPStan 1.10.21, PHPUnit 9.6.9, JetBrains Stubs 2023.1 (#6073)
  Fix binding unused parameter (#6072)
derrabus added a commit to derrabus/dbal that referenced this pull request Jun 28, 2023
* 3.7.x:
  PHPStan 1.10.21, PHPUnit 9.6.9, JetBrains Stubs 2023.1 (doctrine#6073)
  Fix binding unused parameter (doctrine#6072)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL Server issue listing table names
2 participants