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

release-20.1: sql: fix cast from string to array with width #50168

Merged

Commits on Jun 13, 2020

  1. sql: fix cast from string to array with width

    The code that performs a cast from string to array doesn't take into
    account the width of the string type it is producing. This doesn't
    show up when the input is a literal constant because the constant is
    first parsed as an array of (vanilla) strings which is then subjected
    to a cast (to array of strings with width).
    
    Fixes cockroachdb#50132.
    
    Release note (bug fix): Fixed some cases where casting a string to a
    width-limited string array was not truncating the string.
    RaduBerinde committed Jun 13, 2020
    Configuration menu
    Copy the full SHA
    d5d9181 View commit details
    Browse the repository at this point in the history