Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Changing the argument order provided to execute function

satyapalsharma2062202d9000
diff --git a/web/docs/guides/database/extensions/plv8.mdx b/web/docs/guides/database/extensions/plv8.mdx
index 019b698dfdb..ec003c2dc28 100644
--- a/web/docs/guides/database/extensions/plv8.mdx
+++ b/web/docs/guides/database/extensions/plv8.mdx
@@ -128,7 +128,7 @@ returns smallint as $$
var num_affected = plv8.execute(
'udpate profiles set first_name = $1 where id = $2',
- [id, first_name]
+ [first_name, id]
);
return num_affected;
@@ -155,4 +155,4 @@ $$ language plv8;
## Resources
- Official [`plv8` documentation](https://plv8.github.io/).
-- [plv8 Github Repository](https://github.com/plv8/plv8).
\ No newline at end of file
+- [plv8 Github Repository](https://github.com/plv8/plv8).