Albert [tox/cis]
02/24/2022, 11:27 AMsql
create or replace function foo(id uuid) returns boolean as $$
begin
update tablename set bar='test';
return true;
end
$$ language plpgsql;
This returns true but the table rows are not updated. When commenting out everything except the update query, it updates as expected. Why?silentworks
02/24/2022, 11:35 AMAlbert [tox/cis]
02/24/2022, 11:35 AMAlbert [tox/cis]
02/24/2022, 11:35 AMsilentworks
02/24/2022, 11:36 AMAlbert [tox/cis]
02/24/2022, 11:36 AMAlbert [tox/cis]
02/24/2022, 11:42 AMAlbert [tox/cis]
02/24/2022, 11:42 AMtrue just fine with 200 status codeAlbert [tox/cis]
02/24/2022, 5:10 PMsilentworks
02/24/2022, 5:33 PM