Skip to content

Commit

Permalink
Drop auto_type_sql use.
Browse files Browse the repository at this point in the history
This remains from merging with master. The auto_type
does not exist anymore, so testing it for NULL is not
necessary anymore. This case is always true now.
  • Loading branch information
janowagner committed Oct 5, 2020
1 parent 8325a47 commit fcda896
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -21159,8 +21159,7 @@ where_levels_auto (const char *levels, const char *new_severity_sql)
// FIX handles dynamic "severity" in caller?
levels_sql = g_string_new ("");
g_string_append_printf (levels_sql,
" AND (((%s IS NULL) AND (severity_in_level (%s, 'high')",
auto_type_sql,
" AND (((severity_in_level (%s, 'high')",
new_severity_sql);
}

Expand All @@ -21171,8 +21170,7 @@ where_levels_auto (const char *levels, const char *new_severity_sql)
{
levels_sql = g_string_new ("");
g_string_append_printf (levels_sql,
" AND (((%s IS NULL) AND (severity_in_level (%s, 'medium')",
auto_type_sql,
" AND (((severity_in_level (%s, 'medium')",
new_severity_sql);
}
else
Expand All @@ -21189,8 +21187,7 @@ where_levels_auto (const char *levels, const char *new_severity_sql)
{
levels_sql = g_string_new ("");
g_string_append_printf (levels_sql,
" AND (((%s IS NULL) AND (severity_in_level (%s, 'low')",
auto_type_sql,
" AND (((severity_in_level (%s, 'low')",
new_severity_sql);
}
else
Expand All @@ -21207,8 +21204,7 @@ where_levels_auto (const char *levels, const char *new_severity_sql)
{
levels_sql = g_string_new ("");
g_string_append_printf (levels_sql,
" AND (((%s IS NULL) AND (severity_in_level (%s, 'log')",
auto_type_sql,
" AND (((severity_in_level (%s, 'log')",
new_severity_sql);
}
else
Expand Down

0 comments on commit fcda896

Please sign in to comment.