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⏎
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-sqlitebut works as expected withmattn/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
sqlite3vssqliteand the respective imports.