[Greater-commits] r3859 - trunk/GREAT-ER-DB/impl/postgresql
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Dec 5 15:06:41 CET 2011
Author: bricks
Date: 2011-12-05 15:06:39 +0100 (Mon, 05 Dec 2011)
New Revision: 3859
Modified:
trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
Log:
Fix setting the password of a user
Most of the greater db api expects a actual commit for a function.
But this doesn't make sense for changing the password. Actually the
password should be changed immediately.
Modified: trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-12-02 16:01:53 UTC (rev 3858)
+++ trunk/GREAT-ER-DB/impl/postgresql/gdagreater_pg.pgc 2011-12-05 14:06:39 UTC (rev 3859)
@@ -4781,6 +4781,8 @@
errln = 10;
EXEC SQL EXECUTE IMMEDIATE :sql_statement;
+ EXEC SQL COMMIT;
+
errln = 20;
EXEC SQL WHENEVER NOT FOUND GOTO error;
}
More information about the Greater-commits
mailing list