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
Labels
bug component: sql-psi Should be implemented in https://github.com/AlecStrong/sql-psi

Comments

@nlgtuankiet
Copy link

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.

@AlecKazakova AlecKazakova added bug component: sql-psi Should be implemented in https://github.com/AlecStrong/sql-psi labels Feb 13, 2019
@AlecKazakova
Copy link
Collaborator

fixed with AlecKazakova/sql-psi@a5faee9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component: sql-psi Should be implemented in https://github.com/AlecStrong/sql-psi
Projects
None yet
Development

No branches or pull requests

2 participants