From 8c9a0409b10b64af4268f39174ebf77263e6f96a Mon Sep 17 00:00:00 2001 From: troley Date: Mon, 23 Aug 2021 11:51:00 +0200 Subject: [PATCH] MS SQL: Allow multiple table and schema excluding rules Allows a pgloader load file to parse data correctly when multiple `excluding table names like 'TABLE' in schema 'SCHEMA'` filter rules have been provided. Fixes dimitri/pgloader#1328 --- src/sources/mssql/sql/list-all-columns.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sources/mssql/sql/list-all-columns.sql b/src/sources/mssql/sql/list-all-columns.sql index 94b15608..d30938cd 100644 --- a/src/sources/mssql/sql/list-all-columns.sql +++ b/src/sources/mssql/sql/list-all-columns.sql @@ -47,6 +47,6 @@ where c.TABLE_CATALOG = '~a' and t.TABLE_TYPE = '~a' ~:[~*~;and (~{~a~^~&~10t or ~})~] - ~:[~*~;and (~{~a~^~&~10t and ~})~] + ~:[~*~;and (~{~a~^~&~10t or ~})~] order by c.table_schema, c.table_name, c.ordinal_position;