-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Revert statement that is breaking sqlite on OSX. #51682
Conversation
I think I figured it out, but not sure how to validate it works properly: ericsink/SQLitePCL.raw#407 |
Thank you @CyrusNajmabadi and @Therzok for tracking this down ❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sad, since this reverts a good change. I hope whatever the underlying bug is can be fixed and this workaround reverted soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make the change conditional on the current operating system (i.e. avoid changing the behavior for Windows)?
Just in case others have not seen it, ericsink/SQLitePCL.raw#407 contains a writeup of what's going on here. |
@sharwell done. |
68739f9
to
ab43087
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
Discussion of this issue is happening on the sqlite forum at: https://sqlite.org/forum/forumpost/de445cf241 Notable quote from DRH: "Trying to open an on-disk database using "mode=memory" doesn't make sense. Where were you trying to accomplish?" He also reports that he was unable to repro the differing behavior, but I'm not yet sure why. |
Continuing to parrot things from the sqlite forum thread: If "mode=memory" is removed, which DRH said does not make sense, then the behavior across Windows and other platforms no longer differs. In other words, it gives the error in all cases. |
@AArnott for info here. This was added in response to what the platform cache is doing. |
Merging this in now. If we get resolution in https://sqlite.org/forum/forumpost/9babfc9cba?t=h as to what to do here, we can update accordingly. |
No description provided.