File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- __version__ = "0.5.2 "
1+ __version__ = "0.5.3 "
Original file line number Diff line number Diff line change @@ -4,17 +4,17 @@ AFTER INSERT ON {table}
44FOR EACH ROW
55BEGIN
66 UPDATE {table}
7- SET hash = string_hash(json_array({new_columns}))
7+ SET hash = string_hash(json_array(' {table} ' , {new_columns}))
88 WHERE rowid = NEW .rowid ; -- [...]
99END;
1010
1111DROP TRIGGER IF EXISTS after_update_{table};
1212CREATE TRIGGER after_update_ {table}
1313AFTER UPDATE OF {columns} ON {table}
1414FOR EACH ROW
15- WHEN (OLD .hash <> string_hash(json_array({new_columns})))
15+ WHEN (OLD .hash <> string_hash(json_array(' {table} ' , {new_columns})))
1616BEGIN
1717 UPDATE {table}
1818 SET hash = string_hash(json_array({new_columns}))
19- WHERE rowid = NEW .rowid AND (OLD .hash <> string_hash(json_array({new_columns}))); -- [...]
19+ WHERE rowid = NEW .rowid AND (OLD .hash <> string_hash(json_array(' {table} ' , {new_columns}))); -- [...]
2020END;
You can’t perform that action at this time.
0 commit comments