Podlang syntax for quoted predicates (#495)
This commit is contained in:
parent
a4069bcc55
commit
22d25e5cb2
11 changed files with 453 additions and 14 deletions
|
|
@ -176,6 +176,12 @@ impl CustomPredicateBatchBuilder {
|
|||
priv_args: &[&str],
|
||||
sts: &[StatementTmplBuilder],
|
||||
) -> Result<Predicate> {
|
||||
if self.predicates.iter().any(|p| p.name == name) {
|
||||
return Err(Error::custom(format!(
|
||||
"Duplicate predicate name '{}' in batch",
|
||||
name
|
||||
)));
|
||||
}
|
||||
if self.predicates.len() >= Params::max_custom_batch_size() {
|
||||
return Err(Error::max_length(
|
||||
"self.predicates.len".to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue