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

Add default decoder for anonymous record types to BasicTypeRegistry #579

Merged
merged 1 commit into from
Aug 12, 2024

Commits on Aug 11, 2024

  1. Add default decoder for anonymous record types to BasicTypeRegistry

    The PostgreSQL server just sends the generic OID 2249 for generic record/composite types in query results like:
      SELECT row(123, 'str', true, null)
    
    Since we don't get the OIDs of the record items, we can not properly decode them.
    Nevertheless it's helpful to decode at least with the default type map and decode all items to an array of strings like so:
    
    c.exec("SELECT 6, row(123, 'str', true, null), 7").values
     => [[6, ["123", "str", "t", nil], 7]]
    
    instead of:
     => [[6, "(123,str,t,)", 7]]
    
    Related to ged#578
    larskanis committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    761b272 View commit details
    Browse the repository at this point in the history