Content-Length: 253506 | pFad | https://github.com/sfackler/rust-postgres-array/issues/1

95 Empty rows · Issue #1 · sfackler/rust-postgres-array · GitHub
Skip to content

Empty rows #1

@sebmiq

Description

@sebmiq

I think the following behaviour is unintended.

let _ = conn.execute("ALTER TABLE table ADD COLUMN column int4[] DEFAULT '{}'",&[]);
let stmt = conn.prepare("SELECT column FROM table").unwrap();
for row in stmt.query(&[]).unwrap() {
     //row.result_descriptions() is &[(column, Int4Array)]
    let _:ArrayBase<Option<i32>> =row.get(0u); // panics at error retrieving column 0: end of file', src/lib.rs:1552
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/sfackler/rust-postgres-array/issues/1

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy