Allison-E / pg-age

Apache License 2.0
13 stars 6 forks source link

Example in readme does not seem to work #8

Open EwoutdBoer opened 3 weeks ago

EwoutdBoer commented 3 weeks ago

I copied the example from the readme, but I run into the following error when looping the results:

'ApacheAGE.Types.Agtype' is not supported for fields having DataTypeName 'text'

Do others have this as well?

After some googling around, I came across this statement: 'ag_catalog.agtype is forced to return as string, while the type is unknown to the Npgsql driver'. When debugging the client is created and the UseAge() extension method is invoked and the AgtypeResolverFactory is added, but for some reason the agtype does not seem to be set to the correct type.