Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat empty tables the same as non-empty tables #19

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

jomonson
Copy link
Contributor

Currently there is a bug when there are empty tables added to the schema. The dump file then contains an empty COPY statement that is currently mishandled and causes the script to skip to count 9999

@akaihola
Copy link
Owner

Thanks @jomonson, that's a great find! I'll get back to this!

@akaihola
Copy link
Owner

@jomonson I added unit tests and improved the regex to deal with varying numbers of spaces. Maybe this isn't an issue with what PostgreSQL produces, but won't this be a bit more future proof just in case?

@akaihola akaihola added this to the 1.0.1 milestone Apr 19, 2024
@akaihola akaihola self-requested a review April 19, 2024 19:23
@akaihola akaihola force-pushed the patch-1 branch 3 times, most recently from bf7dec7 to f8f1af3 Compare April 20, 2024 08:47
jomonson and others added 3 commits April 22, 2024 16:58
Currently there is a bug when there are empty tables added to the
schema. The dump file then contains an empty COPY statement that is
currently mishandled and causes the script to skip to count 9999
@akaihola
Copy link
Owner

@oldcai would you be interested to take a look at this patch from @jomonson, refined by me?

@akaihola akaihola modified the milestones: 1.0.1, 1.1.0 Apr 22, 2024
@akaihola akaihola merged commit 52580a1 into akaihola:master Apr 24, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants