Skip to content

[Queries] [MySQL] New Uint64 type breaks for BIGINT UNSIGNED with interpolateParams=true #558

@luis-mozn

Description

@luis-mozn

Opening an issue as I'm not sure if I might be doing something wrong but, with v0.40.2 I tried enabling interpolateParams in our DSN using https://github.com/go-sql-driver/mysql.
This produced great performance improvements but broke some bob sql queries which now fail with

        	            	sql: Scan error on column index 0, name "id": unsupported scan type for Uint64: uint64

It seems this changed how the mysql driver handles type conversions and broke scanning due to uint64 not being supported.

Any objections to simply supporting uint64 in Uint64.Scan?
If not I can prepare a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions