-
Notifications
You must be signed in to change notification settings - Fork 164
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
Sqlite Error when trying to add task to sobject #1571
Comments
Any suggestions what's causing this? |
In the log_message function in the API, there is the following code:
For some reason, there is specific code for Sqlite here. The normal log message uses straight low level SQL. For some reason, in your case, last_message is None and thus it is trying to create a new sobject rather than reusing the sobject in the database. I am not really sure why it can't find "last_message", but still have trouble inserting 'message_sobj' on commit. Also, I am not really sure why Sqlite needs separate condition that other databases ... if make it go through the regular code, does it work?
|
Thanks!
|
This is likely why there is database specific code for SQLite. The former was to avoid the locking that occurs with SQLite. The message function is supposed to exist outside of the transaction but that breaks SQLite. |
Ok, I have reproduced this error. I will take a look at this. |
This should be fixed in linked pull request. |
Describe the bug
When i try to add task with status to any sobject i get:
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: