Open sdmcallister opened 7 months ago
Just saw #186
Just saw #186
Yes. It could be the problem with your duckdb driver.
But you could try to debug github.com/alexbrainman/odbc code before you blame duckdb driver code.
Unfortunately I don't have time to debug this myself.
Alex
Floats seem to work (salary is a DOUBLE).
// Insert sample values
_, err = db.Exec("INSERT INTO person (name, age, salary) VALUES (?, 30, ?)", "John", 20.11)
if err != nil {
log.Fatal("Error inserting values:", err)
}
fmt.Println("This works; inserted successfully!")
I can insert and select strings / varchar.
If the integer is hardcoded like
"INSERT INTO person (name, age) VALUES (?, 30)"
I can insert successfully and I can scan into a Go int.The database is in :memory:.
Any ideas why would it be trying to insert a null?
I get