A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
Cast bound tenant UUID to the configuration text type
Rudy Celekli2692b54a67a3
diff --git a/engineering/engineering-identity-access-engineer.md b/engineering/engineering-identity-access-engineer.mdindex a25d443a..7900d973 100644--- a/engineering/engineering-identity-access-engineer.md+++ b/engineering/engineering-identity-access-engineer.md@@ -143,7 +143,7 @@ CREATE POLICY tenant_isolation ON documents-- EVERY request runs all its queries on this same connection and transaction.-- Bind the authenticated tenant UUID using the driver's parameter API.BEGIN;-SELECT set_config('app.tenant_id', :authenticated_tenant_id, true);+SELECT set_config('app.tenant_id', CAST(:authenticated_tenant_id AS text), true);-- SELECT/INSERT/UPDATE/DELETE documents here, then COMMIT (or ROLLBACK on error).COMMIT;-- The true flag makes context transaction-local: pool reuse cannot carry a