Skip to content

Commit

Permalink
Remove the DD checks on source field and table
Browse files Browse the repository at this point in the history
Omitted from #176
  • Loading branch information
martinburchell committed Jan 2, 2025
1 parent 8ab6fd8 commit d2b0bc1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crate_anon/anonymise/ddr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,6 @@ def _check_valid(self) -> None:
srccfg = self.config.sources[self.src_db].srccfg

assert self.src_table, "Need src_table"
ensure_valid_table_name(self.src_table)

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Check destination table is OK
Expand Down Expand Up @@ -1253,7 +1252,6 @@ def _check_valid(self) -> None:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Check other source field information
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ensure_valid_field_name(self.src_field)
assert self.src_datatype, "Need src_datatype"

# REMOVED 2016-06-04; fails with complex SQL Server types, which can
Expand Down

0 comments on commit d2b0bc1

Please sign in to comment.