Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add rowid column to FTS5 tables#3902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ajeetdsouza wants to merge1 commit intosqlc-dev:main
base:main
Choose a base branch
Loading
fromajeetdsouza:fts5-rowid

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 extrarowid (int64) column to allfts5 virtual tables. However, this is not reflected in the schema. When I add a query like this:

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

and callsqlc generate, I get this error:

query.sql:12:1: column "rowid" does not exist

@dosubotdosubotbot added size:MThis PR changes 30-99 lines, ignoring generated files. 🔧 golang labelsMar 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
size:MThis PR changes 30-99 lines, ignoring generated files.🔧 golang
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

rowid doesn't work with SQLite FTS5 tables
1 participant
@ajeetdsouza

[8]ページ先頭

©2009-2025 Movatter.jp