8000 Trivial scan does not work · Issue #157 · glebarez/go-sqlite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Trivial scan does not work #157
Open
@filmil

Description

@filmil

See the repro case here: https://github.com/filmil/bugreports/tree/main/go-sqlite

I have a repro program which just creates a database and tries to do a trivial scan from the table. It errors out in go-sqlite but works as expected with mattn/go-sqlite3.
Here's the example output with the two sqlite3 drivers, and the difference between them. Refer to the above link for the program and the repro case.
The programs are almost identical.
The only real change is the use of driver name sqlite3 vs sqlite and the respective imports.

┬─[fmil@fmil9:~/code/bugreports/go-sqlite]─[11:38:54 AM]
│ (g/b:main)
╰─>$ cd ex && rm -f test.sqlite && go run . && cd -
GetAnn: Next error: bad parameter or other API misuse: not an error (21)got: ⏎
┬─[fmil@fmil9:~/code/bugreports/go-sqlite]─[11:39:00 AM]
│ (g/b:main)
╰─>$ cd ex2 && rm -f test.sqlite && go run . && cd -
got: field⏎

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0