Skip to content

Null values #53

@llaine

Description

@llaine

Let's imagine that I have this struct

struct V {
 int x;
 int y;
}

// Query 
auto cmd = new PGCommand(conn, "select x, y from vectors");
auto result = cmd.executeQuery!(V)();
V[] r = result.map!(a => cast(V) a).array;

Let's imagine that my dataset returns something like
| 1 | 2 |
| null | 3 |

I will always have an error saying that it can't handle null values.

How can I fix this?

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