Skip to content

Commit

Permalink
feat: ignore _temp tables
Browse files Browse the repository at this point in the history
Closes #6
  • Loading branch information
stdavis committed May 16, 2022
1 parent 6a99484 commit 76f2580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChangeDetection.cs
Expand Up @@ -130,7 +130,7 @@ internal static class ChangeDetection {

const string? tableMetaQuery = "SELECT LOWER(table_name) " +
$"FROM {schema}sde_table_registry registry " +
"WHERE NOT (table_name like 'SDE_%' OR table_name like 'GDB_%')";
"WHERE NOT (table_name like 'SDE_%' OR table_name like 'GDB_%' OR table_name like '_temp')"; // _temp is for swapper tables
const string? fieldMetaQuery = "SELECT LOWER(table_cataLog) as [db], LOWER(table_schema) as [schema], LOWER(table_name) as [table], LOWER(column_name) as [field], LOWER(data_type) as fieldType " +
"FROM INFORMATION_SCHEMA.COLUMNS " +
"WHERE table_name IN @tables AND LOWER(column_name) NOT IN @skipFields";
Expand Down

0 comments on commit 76f2580

Please sign in to comment.