Allison-E / pg-age

Apache License 2.0
11 stars 5 forks source link

Example in readme does not seem to work #8

Open EwoutdBoer opened 5 days ago

EwoutdBoer commented 5 days 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.