Closed br3w0r closed 7 months ago
Hi, thank you for this catch. Can I ask you to also add a test for this use case please?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.63%. Comparing base (
5c09502
) to head (2b8f25c
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@georgysavva done!
@br3w0r, thank you for your contribution. I will go ahead and release a new version with this fix.
The problem: at my job when we worked with custom enums there was a problem when a new custom enum wasn't yet added to a struct for scanning. It leaded to an error when
SELECT * FROM ...
was used:This problem occurs because the
interface{}
type obviously doesn't implement thesql.Scanner
interface. So, I added a new type that does the job and replaced theinterface{}
that was used for scanning of columns which wouldn't be used.