Skip to content

AllowsDBNull property always null on columns returned from NpgsqlDataReader.GetColumnSchema() #2

@dsmithson

Description

@dsmithson

I'm using the NpgsqlDataReader's GetColumnSchema() method to get metadata associated with my query response, and I noticed that every column's AllowDBNull property is always null. I'm including a sample app that creates and queries a test table with both nullable and non-nullable columns to demonstrate this behavior.

The rest of the NpgSqlDbColumn object appears to have valid data including the column name and data type info, and so I'm guessing that the AllowDBNull property should have a valid boolean value.

cratenpgsqlcolumnschemaissue

CrateNpgsqlColumnSchemaIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions