Closed sandeepc24 closed 6 years ago
Thanks for reporting the issue. It's bit hard to test. Try https://www.nuget.org/packages/FSharp.Data.Npgsql/0.1.36-beta
Thanks for fixing it Dmitry, I have an urgent issue to fix before I can test this, I'll let you know once I test this version.
Apologies for the delayed response. It is still not working and I am getting same error.
Make sure you reference Npgsql.LegacyPostgis
package in consumption project.
It is working fine after adding this package. Thanks a lot Dmitry.
Great.
Just curios how did you end up missing Npgsql.LegacyPostgis
package?
Because it's listed as explicit dependency
https://www.nuget.org/packages/FSharp.Data.Npgsql/0.1.36-beta
Also, going forward some re-design will required to support choice between
Npgsql.LegacyPostgis was never installed and it didn't install when I upgraded to 0.1.36.
It's strange because Npgsql.LegacyPostgis
is transitive dependency and it has to be there
My project compiles after adding package Npgsql.LegacyPostgis
to my paket.reference
but I am getting following error
An unhandled exception has occurred while executing the request.
System.InvalidOperationException: Expected column "geom" of type "Npgsql.LegacyPostgis.PostgisGeometry" at position 6 (0-based indexing) but received column "geom" of type "System.String".
at FSharp.Data.Npgsql.ISqlCommand Implementation.VerifyOutputColumns(NpgsqlDataReader cursor, DataColumn[] expectedColumns)
You need to add type mappers https://github.com/demetrixbio/FSharp.Data.Npgsql/blob/master/tests/NpgsqlCmdTests.fs#L19
I realized that library should do it automatically when connection string passed into command ctor.
Do you monitor FSharp slack or FSharp forums?
no
Thanks that fixed it.
oops that fixed compilation only, I am still getting
Expected column "geom" of type "Npgsql.LegacyPostgis.PostgisGeometry" at position 6 (0-based indexing) but received column "geom" of type "System.String".
at FSharp.Data.Npgsql.ISqlCommand Implementation.VerifyOutputColumns(NpgsqlDataReader cursor, DataColumn[] expectedColumns)
Do you pass connection string or connection instance to a command that fails?
connection string
I need to post a fix to make it work.
ok, I'll wait for your fix. Thanks.
Thanks, that fixed the issue.
I am getting following error after upgrading to 0.1.35 beta. I am on dotnet 2.1.4.