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