Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri Astrakhan <[email protected]>
  • Loading branch information
sharkAndshark and nyurik authored Sep 19, 2023
1 parent 0235e1a commit 3eb6ea7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions martin/src/pg/configurator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,18 @@ mod tests {
source_id_format: source_id_format.to_string(),
schemas: schemas.map(|s| s.iter().map(|s| (*s).to_string()).collect()),
id_columns: None,
clip_geom: None,
buffer: None,
clip_geom: if item.clip_geom.is_some() && is_function {
error!("Configuration parameter auto_publish.functions.clip_geom is not supported");
None
} else {
item.clip_geom
},
buffer: if item.buffer.is_some() && is_function {
error!("Configuration parameter auto_publish.functions.buffer is not supported");
None
} else {
item.buffer
},
})
}

Expand Down

0 comments on commit 3eb6ea7

Please sign in to comment.