Skip to content

Postgresql ARRAY not supported #281

Open
@rrottier

Description

@rrottier

Description

I am trying to retrieve some data from a postgresql database using the SQL Provider. I am able to query some tables without any issue but when I try to run a query on a table containing a column with a double precision [][] type.

The error is:

FsLab Experiment1.fsx(50,18): error FS3021: Unexpected exception from provided type 'FSharp.Data.Sql.SqlDataProvider,DatabaseVendor="2",ConnectionString="Server=crunch.****.com;Database=itrd_db;User Id=******;Password=*****",ResolutionPath="Z:\\FSharp\\EVTAnalysis\\EVTAnalysis\\packages\\Npgsql\\lib\\net45",UseOptionTypes="True"+dataContext+publicSchema+public.itrd_telemetrymatrix' member 'GetMethods': The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Could not get columns for `public.itrd_telemetrymatrix`, the type `ARRAY` is unknown to Npgsql

But when I just run a plain Npgsql query I am able to get the data without any issue.

Related information

  • Windows 10
  • Visual Studio 2015

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