aboutsummaryrefslogtreecommitdiffstats
path: root/community/gvmd/fix-alpine-sql-syntax.patch
blob: 09fd9b2dd73a3bd9c03ec17a323a3cf4a2fad0cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"