Skip to content

Commit

Permalink
do not dump generated fields (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
r3nic1e authored Nov 21, 2022
1 parent 5d764a2 commit 0ef7d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ FROM INFORMATION_SCHEMA.TABLES as t
JOIN (
SELECT c.TABLE_NAME as table, ARRAY_AGG(c.COLUMN_NAME) as columns
FROM INFORMATION_SCHEMA.COLUMNS AS c
WHERE c.TABLE_CATALOG = '' AND c.TABLE_SCHEMA = ''
WHERE c.TABLE_CATALOG = '' AND c.TABLE_SCHEMA = '' AND c.IS_GENERATED = 'NEVER'
GROUP BY c.TABLE_NAME
) as c
ON t.TABLE_NAME = c.table
Expand Down

0 comments on commit 0ef7d1d

Please sign in to comment.