Skip to content

Fix condition on Ascii String for SQL Server#6389

Merged
derrabus merged 1 commit intodoctrine:3.9.xfrom
Yovach:fix/condition-varchar-sql-server
Aug 14, 2024
Merged

Fix condition on Ascii String for SQL Server#6389
derrabus merged 1 commit intodoctrine:3.9.xfrom
Yovach:fix/condition-varchar-sql-server

Conversation

@Yovach
Copy link
Copy Markdown
Contributor

@Yovach Yovach commented May 6, 2024

Q A
Type bug
Fixed issues #6245

Summary

This MR fixes a condition on SQL Server where fixed is always defined as true or false so return sprintf('VARCHAR(%d)', $length ?? 255); is always ignored.

@greg0ire greg0ire added the Bug label May 6, 2024
@SenseException
Copy link
Copy Markdown
Member

Thanks for your pull request. Please create a test that covers your fix for SQL Server

Comment thread tests/Platforms/SQLServerPlatformTest.php
SenseException
SenseException previously approved these changes May 21, 2024
@greg0ire greg0ire requested a review from derrabus June 1, 2024 20:42
fixed is always set (to either true or false).
@greg0ire greg0ire force-pushed the fix/condition-varchar-sql-server branch from d4651ec to 04ebb8e Compare June 1, 2024 20:45
derrabus
derrabus previously approved these changes Aug 14, 2024
@derrabus derrabus added this to the 3.9.0 milestone Aug 14, 2024
@derrabus derrabus changed the base branch from 3.8.x to 3.9.x August 14, 2024 10:58
@derrabus derrabus dismissed stale reviews from SenseException and themself August 14, 2024 10:58

The base branch was changed.

@derrabus derrabus merged commit 1f8b3fb into doctrine:3.9.x Aug 14, 2024
derrabus added a commit to derrabus/dbal that referenced this pull request Aug 14, 2024
* 3.9.x:
  fix doctrine#6198:  stop considering generated column definition as being its default value (doctrine#6199)
  Fix condition on Ascii String for SQL Server (doctrine#6389)
  Add DBTypes that are missing for TypeMapping (doctrine#6463)
derrabus added a commit to derrabus/dbal that referenced this pull request Aug 14, 2024
* 3.9.x:
  fix doctrine#6198:  stop considering generated column definition as being its default value (doctrine#6199)
  Fix condition on Ascii String for SQL Server (doctrine#6389)
  Add DBTypes that are missing for TypeMapping (doctrine#6463)
derrabus added a commit to derrabus/dbal that referenced this pull request Aug 14, 2024
* 3.9.x:
  fix doctrine#6198:  stop considering generated column definition as being its default value (doctrine#6199)
  Fix condition on Ascii String for SQL Server (doctrine#6389)
  Add DBTypes that are missing for TypeMapping (doctrine#6463)
derrabus added a commit that referenced this pull request Aug 15, 2024
* 4.1.x:
  Prepare 3.9.0 and 4.1.0 (#6492)
  Deprecate support for Postgres 10 and 11 (#6495)
  Document the new PostgreSQL120Platform (#6494)
  fix #6198:  stop considering generated column definition as being its default value (#6199)
  Fix condition on Ascii String for SQL Server (#6389)
  Add DBTypes that are missing for TypeMapping (#6463)
@Yovach Yovach deleted the fix/condition-varchar-sql-server branch August 21, 2024 08:45
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants