From b9070ef6a288de6cc464d9cda82d50a1a09adabf Mon Sep 17 00:00:00 2001 From: ckroot <39632390+saliouseck2009@users.noreply.github.com> Date: Fri, 11 Feb 2022 13:04:02 +0000 Subject: [PATCH] change name of the update method The name of the method update in line 140 Cause exceptions for the methods `moveImportantTasksIntoCategory` and `update` method itself . The problem is when these two methods try to call the native update method on `package:drift/src/runtime/api/runtime_api.dart` the program use the update method define in this page and trigger exceptions . It takes me lots of time . --- docs/pages/docs/Getting started/writing_queries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/docs/Getting started/writing_queries.md b/docs/pages/docs/Getting started/writing_queries.md index d96c525b..8ac6112e 100644 --- a/docs/pages/docs/Getting started/writing_queries.md +++ b/docs/pages/docs/Getting started/writing_queries.md @@ -137,7 +137,7 @@ Future moveImportantTasksIntoCategory(Category target) { ); } -Future update(Todo entry) { +Future updateTodo(Todo entry) { // using replace will update all fields from the entry that are not marked as a primary key. // it will also make sure that only the entry with the same primary key will be updated. // Here, this means that the row that has the same id as entry will be updated to reflect