1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/gvmd/fix-alpine-sql-syntax.patch
2019-10-21 20:01:23 +00:00

22 lines
930 B
Diff

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"