Skip to content

Commit

Permalink
implement query expression %#[drCFODLUGB] to query number of elements…
Browse files Browse the repository at this point in the history
… of information.

Conflicts:

	pkg/query.c
  • Loading branch information
rg1 authored and bapt committed Jun 24, 2012
1 parent ba196d8 commit 707775f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/pkg-query.8
Expand Up @@ -205,6 +205,11 @@ Message of the package (type string)
Timestamp that the package was installed (type integer)
.It Cm \&%i
Additionnal information about the package (type string)
.It Cm \&%# Ns Op drCFODLUGB
Number of elements in the list of information (type integer).
See
.Cm %?
above for what information is used.
.El
.Ss Operators
.Bl -tag -width F1
Expand Down
2 changes: 1 addition & 1 deletion pkg/query.c
Expand Up @@ -493,7 +493,7 @@ format_sql_condition(const char *str, struct sbuf *sqlcond, bool for_remote)
sbuf_printf(sqlcond, "(SELECT COUNT(*) FROM %spkg_shlibs AS d WHERE d.package_id=p.id)", dbstr);
break;
default:
fprintf(stderr, "malformed evaluation string\n");
fprintf(stderr, "malformed evaluation string");
return (EPKG_FATAL);
}
state = OPERATOR_INT;
Expand Down

0 comments on commit 707775f

Please sign in to comment.