Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql driver: conversion of lazy loaded document when Scanning #383

Open
paralin opened this issue Apr 11, 2021 · 4 comments
Open

sql driver: conversion of lazy loaded document when Scanning #383

paralin opened this issue Apr 11, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@paralin
Copy link

paralin commented Apr 11, 2021

Now that #382 was merged, my go-orm test is proceeding past inserting objects into the db!

The next hurdle is getting Scan() to work:

panic: sql: Scan error on column index 0, name "*": unsupported Scan, storing driver.Value type *database.lazilyDecodedDocument into type *sql.RawBytes

In database/sql/convert.go:219 (convertAssignRows) it tries to convert the *lazilyDecodedDocument into *sql.RawBytes.

@paralin paralin added the bug Something isn't working label Apr 11, 2021
@asdine
Copy link
Collaborator

asdine commented Apr 11, 2021

Cool! Could you share the query you tried to run? And any info that could help me investigate

@gedw99

This comment has been minimized.

@paralin
Copy link
Author

paralin commented Apr 18, 2021

@asdine I've posted a PR with the ORM test code in #390

@gedw99 Not currently but I plan to eventually return to Magellan and build it into a production-grade project.

@asdine

This comment has been minimized.

@asdine asdine added this to the v0.13.0 milestone May 1, 2021
@asdine asdine removed this from the v0.13.0 milestone Jul 21, 2021
@asdine asdine added this to the v0.16.0 milestone Jul 2, 2022
@asdine asdine removed this from the v0.16.0 milestone Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants