diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-12-05 07:42:25 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 13:09:00 +0100 |
commit | b159bdd4fd0fe6ed38a02c733ff117e87d187e27 (patch) | |
tree | 2baa74da73eb863cf6b6e4e80694bcebf0c87ae5 /Userland/Libraries/LibSQL/AST | |
parent | b9d8c25b0bfcf902bfceffb0ff7576c8d4256157 (diff) | |
download | serenity-b159bdd4fd0fe6ed38a02c733ff117e87d187e27.zip |
LibSQL+SQLServer+sql: Send and parse the correct number of changed rows
The sql REPL had the created/updated rows swapped by mistake. Also make
sure SQLServer fills in the correct value depending on the executed
command, and that the DELETE command indicates the rows it deleted.
Diffstat (limited to 'Userland/Libraries/LibSQL/AST')
-rw-r--r-- | Userland/Libraries/LibSQL/AST/Delete.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSQL/AST/Delete.cpp b/Userland/Libraries/LibSQL/AST/Delete.cpp index d2c87dfb6e..a36e15c356 100644 --- a/Userland/Libraries/LibSQL/AST/Delete.cpp +++ b/Userland/Libraries/LibSQL/AST/Delete.cpp @@ -31,6 +31,7 @@ ResultOr<ResultSet> Delete::execute(ExecutionContext& context) const TRY(context.database->remove(table_row)); // FIXME: Implement the RETURNING clause. + result.insert_row(table_row, {}); } return result; |