go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
89 stars 678 forks source link

Bug: db.Find on custom string types #669

Open VashingMachine opened 9 months ago

VashingMachine commented 9 months ago

Explain your user case and expected results

GORM generally handles custom string types effectively when SQL results are mapped into a model or a string. However, when attempting to map results to a custom string type, an unrelated error message is encountered:

Failed, got error: sql: Scan called without calling Next

This issue arises specifically in the context of mapping results to custom string types, suggesting a potential bug or undocumented requirement in GORM's handling of such types.