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

Inserting data does overrides columns with defaults or autoincrement set. #8

Closed
PAPutzback opened this issue Dec 28, 2020 · 5 comments

Comments

@PAPutzback
Copy link

PAPutzback commented Dec 28, 2020

If I insert a row and leave the Primary key field empty since it is supposed to autogenerate the id on insert and\or I leave another column with the default set to CURRENT_TIMESTAMP(). Neither the ID or the date gets set. They end up being set to empty strings. Without the key this also makes deletes a bit of an issue and the user will need rules to add additional key fields.
Great Addin though. I'll just have to add some instructions for the users to look up the last ID and increment it by 1 and type in the date and time for the CREATE DATE field.

@ssegal100
Copy link
Collaborator

Hi @PAPutzback. If you are trying to only insert rows, then you can just leave those columns out. If you do that it will not explicitly set those columns to anything, so the defaults should work. You won't be able to do an insert and update in the same 'upload' function though.
Let me know if this could work for you. If you can think of a behavior change that can help, let me know.
Thanks.

@ssegal100
Copy link
Collaborator

@PAPutzback Is there any improvements that we can do to help? Maybe I'm not completely understanding the issue.
Thanks.

@ssegal100
Copy link
Collaborator

@PAPutzback Was there anything I can help with on this issue? If not I'd like to close it out.
Thanks.
Steve

@PAPutzback
Copy link
Author

PAPutzback commented Mar 23, 2021 via email

@ssegal100
Copy link
Collaborator

Thanks!

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

No branches or pull requests

2 participants