Skip to content

DataException error for functions with default values #16

@charabaruk

Description

@charabaruk

When expanding a connection to a Postgres database containing a function that has an argument with a default value, the operation fails and LINQPad shows the following message next to the database name:

(Error: DataException - Error parsing column 5 (ArgumentDefaults=System.UInt32[] - Object) (The field 'ArgumentDefaults' has a type currently unknown to Npgsql (OID 94). You can retrieve it as a string by marking it as unknown, please see the FAQ.))

Please catch the exception and work around any functions that cannot be properly resolved.

The signature of the function in question is

(IN id integer DEFAULT 0) RETURNS TABLE(id integer, iid uuid, parent_iid uuid, line text, body text, link_count integer, link_ids integer[], document json)

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