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

Disallow user to execute copy commands twice on a relt able #1268

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

acquamarin
Copy link
Collaborator

This PR prevents the user to execute multiple copy commands on the same rel table.
Since numTuples will decrease as we delete tuples from relTable, we shouldn't use numTuples to check whether we can copy
csv to a rel table or not. Instead, we should use the next relOffset to determine whether we can do copy on a rel table.

@acquamarin acquamarin merged commit 5e5813d into master Feb 9, 2023
@acquamarin acquamarin deleted the copy-csv-fix branch February 9, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants