Name

AddAuth — Agrega un testigo de autorización para usarlo en la transacción actual.

Synopsis

boolean AddAuth(text auth_token);

Descripción

Agrega un testigo de autorización para usarlo en la transacción actual.

Adds the current transaction identifier and authorization token to a temporary table called temp_lock_have_table.

Disponibilidad: 1.1.3

Ejemplos

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'
                

Ver también

LockRow