marcboeker / go-duckdb

go-duckdb provides a database/sql driver for the DuckDB database engine.
MIT License
714 stars 106 forks source link

Unique BLOB not supported? #105

Closed NorbertHauriel closed 1 year ago

NorbertHauriel commented 1 year ago

In v1.4.1, I get this error:

Not implemented Error: Indexes cannot contain BLOBs that contain null-terminated bytes. when trying to insert a random blob (containing one or more zero bytes) into a UNIQUE blob column into this table schema:

CREATE SEQUENCE IF NOT EXISTS seq_hashes START 1;
CREATE TABLE IF NOT EXISTS "Hashes" (
    "id" bigint PRIMARY KEY DEFAULT nextval('seq_hashes'),
    "hash" bytea NOT NULL UNIQUE
);

Is it possible to have a clear roadmap TODO list of the missing features from basic commands like UNIQUE, PRIMARY KEY, REFERENCES, and postgres datatypes not being supported fully in some operations?

Thanks for having this cool project, thrilled to see it develop to the maturity level of sqlite3!

marcboeker commented 1 year ago

Hi, I think this is an issue for the DuckDB Project as go-duckdb only links against the DuckDB C API and provides a Go driver. We have no influence over features that affect DuckDB.