Eli Mesika has uploaded a new change for review. Change subject: core: [db] remove unused function ......................................................................
core: [db] remove unused function The isloggingenabled function is not used anymore ans should be deleted. Change-Id: I2a9ef1210c5371948a0f583c30e11da54faf5790 Signed-off-by: Eli Mesika <[email protected]> --- M packaging/dbscripts/common_sp.sql 1 file changed, 0 insertions(+), 28 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/38/18238/1 diff --git a/packaging/dbscripts/common_sp.sql b/packaging/dbscripts/common_sp.sql index 3495052..dd5e46a 100644 --- a/packaging/dbscripts/common_sp.sql +++ b/packaging/dbscripts/common_sp.sql @@ -198,34 +198,6 @@ -- End of DB helper functions -------------------------------------------------- -CREATE OR REPLACE FUNCTION isloggingenabled(errorcode text) - RETURNS boolean AS -$BODY$ --- determine if logging errors is enabled. --- define in your postgresql.conf: --- custom_variable_classes = 'engine' --- set engine.logging = 'true'; --- or this could be in a config table - --- NOTE: We should look at checking error codes as not all are suitable for exceptions some are just notice or info -declare - result boolean := false; - prop text; -begin - -- check for log setting in postgresql.conf - select current_setting('engine.logging') into prop; - if prop = 'true' then -result = true; - end if; - return result; -exception - when others then -result = true; -- default to log if not specified -return result; -end; -$BODY$ - LANGUAGE 'plpgsql'; - CREATE OR REPLACE FUNCTION attach_user_to_su_role(v_permission_id uuid) RETURNS void AS $procedure$ -- To view, visit http://gerrit.ovirt.org/18238 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2a9ef1210c5371948a0f583c30e11da54faf5790 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Eli Mesika <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
