Skip to content

Conversation

ajeetdsouza
Copy link

Fixes #3901:

When creating a virtual table like so:

CREATE VIRTUAL TABLE my_fts USING fts5 ( name, description, content = '', contentless_delete = 1, tokenize = 'porter' );

SQLite automatically adds an extra rowid (int64) column to all fts5 virtual tables. However, this is not reflected in the schema. When I add a query like this:

-- name: InsertMyFTS :exec INSERT INTO my_fts (rowid, name, description) VALUES (?, ?, ?);

and call sqlc generate, I get this error:

query.sql:12:1: column "rowid" does not exist 
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. 🔧 golang labels Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files. 🔧 golang

1 participant