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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SQL Server type mappings for strings #19428

Merged
merged 1 commit into from
Dec 30, 2019
Merged

Commits on Dec 30, 2019

  1. Update SQL Server type mappings for strings

    Fixes #19327
    
    Create fixed-length type mappings by default, and then use the correct DbType in the parameter if the length of the value matches the parameter length. This has a better chance of hitting an index. In other cases, change the DbType to match what we did before so that SQLClient doesn't truncate or pad.
    
    Fixes #14555
    
    If the parameter value length is greater than the max length but less than the max bounded length, then using the max bounded length rather than going immediately to unbounded.
    ajcvickers committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    fdc1027 View commit details
    Browse the repository at this point in the history