microo8 / plgo

easily create postgresql extensions in golang; moved to gitlab.com/microo8/plgo
292 stars 23 forks source link

Text fields are not processed correctly. #25

Closed AoAnima closed 5 years ago

AoAnima commented 5 years ago

Regarding your example concatll, when accessing a field with a text type, it gives an error "I / O error when sending backend", does not work with a field of type varchar, I added in pl.go to the func scanVal in case * string switch oid { case C.VARCHAROID:

and it began to work correctly with a field of type varchar, but with field of type text does not work: (

microo8 commented 5 years ago

I can look at it

microo8 commented 5 years ago

When you do some changes to the plgo package, please create a pull request