diff --git a/src/manage_pg.c b/src/manage_pg.c index e91b9f9..d6aa3b9 100644 --- a/src/manage_pg.c +++ b/src/manage_pg.c @@ -679,7 +679,7 @@ manage_create_sql_functions () " BEGIN" " CASE" " WHEN NOT valid_db_resource_type ($1)" - " THEN RAISE EXCEPTION 'Invalid resource type argument: %', $1;" + " THEN RAISE EXCEPTION 'Invalid resource type argument: %%', $1;" " WHEN $1 = 'note'" " AND $3 = " G_STRINGIFY (LOCATION_TABLE) " THEN RETURN (SELECT 'Note for: '" @@ -942,7 +942,7 @@ manage_create_sql_functions () " ELSIF $1 > 0.0 AND $1 <= 10.0 THEN" " RETURN 'Alarm';" " ELSE" - " RAISE EXCEPTION 'Invalid severity score given: %', $1;" + " RAISE EXCEPTION 'Invalid severity score given: %%', $1;" " END IF;" " END;" "$$ LANGUAGE plpgsql"