Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No column found with name docid" when using in TRIGGER statement #1218

Closed
nlgtuankiet opened this issue Feb 13, 2019 · 1 comment
Closed

"No column found with name docid" when using in TRIGGER statement #1218

nlgtuankiet opened this issue Feb 13, 2019 · 1 comment

Comments

@nlgtuankiet
Copy link

@nlgtuankiet nlgtuankiet commented Feb 13, 2019

version: 1.0.3

CREATE TABLE task
  (
     id          TEXT NOT NULL,
     title       TEXT NOT NULL,
     description TEXT,
     completed   INTEGER NOT NULL,
     PRIMARY KEY(id)
  );

CREATE VIRTUAL TABLE task_fts USING FTS4(title TEXT NOT NULL, description TEXT, content=task);

CREATE TRIGGER content_sync_task_fts_BEFORE_UPDATE
BEFORE UPDATE ON task
BEGIN
    DELETE
    FROM task_fts
    WHERE docid=old.rowid;
END

Editor complain about No column found with name docid and No column found with name rowid also generateSqlDelightInterface task fail too.

@AlecStrong

This comment has been minimized.

Copy link
Collaborator

@AlecStrong AlecStrong commented Feb 25, 2019

@AlecStrong AlecStrong closed this Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.