Skip to content

Commit

Permalink
feat(cognitarium): disallow select with no where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Apr 20, 2023
1 parent 01a052d commit bf89eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/okp4-cognitarium/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub struct SelectQuery {
pub select: Vec<SelectItem>,
/// The WHERE clause.
/// If `None`, there is no WHERE clause, i.e. all triples are returned without filtering.
pub r#where: Option<WhereClause>,
pub r#where: WhereClause,
/// The maximum number of results to return.
/// If `None`, there is no limit.
/// Note: the value of the limit cannot exceed the maximum query limit defined in the store
Expand Down

0 comments on commit bf89eaa

Please sign in to comment.