AddAuth — Ajoute un jeton d'autorisation à utiliser dans la transaction courante.
boolean AddAuth(
text auth_token)
;
Ajoute un jeton d'autorisation à utiliser dans la transaction courante.
Ajoute l'identifiant de la transaction en cours et le jeton d'autorisation à une table temporaire appelée temp_lock_have_table
.
Disponibilité : 1.1.3
SELECT LockRow('towns', '353', 'priscilla'); BEGIN TRANSACTION; SELECT AddAuth('joey'); UPDATE towns SET geom = ST_Translate(geom,2,2) WHERE gid = 353; COMMIT; ---Error-- ERROR: UPDATE where "gid" = '353' requires authorization 'priscilla'