-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Executing select "with recursion" marks database dirty #1185
Comments
This should improve the detection of read-only query statements vs. modifiying statements in the Execute SQL tab. The idea is to stop looking for the SELECT keyword at the beginning of the statement and instead fully rely on whether SQLite returns any data for this statement. See issue #1185.
Good point! I've prepared a patch for this which should fix this. It's replacing a wrong assumption by an untested one. If you want to have a look at this, you can check out this comment: #1181 (comment) If there are no major concerns with this, we can merge the code in the next couple of days. I'll let you know as soon as this is done 😄 |
This should improve the detection of read-only query statements vs. modifiying statements in the Execute SQL tab. The idea is to stop looking for the SELECT keyword at the beginning of the statement and instead fully rely on whether SQLite returns any data for this statement. See issue #1185.
This should improve the detection of read-only query statements vs. modifiying statements in the Execute SQL tab. The idea is to stop looking for the SELECT keyword at the beginning of the statement and instead fully rely on whether SQLite returns any data for this statement. See issue #1185.
And it's merged 😄 Can you test again using tomorrow's nightly build (hopefully the build works this time 😉)? It's also worth checking for any other oddities related to this, like what happens when running other statements. |
I would love to test, but again no nightlies for Windows 10 today.... |
@pamtbaau Just started the nightlies build script manually ~5 mins ago, after @MKleusberg fixed the problem that was breaking it. The now-very-overdue nighlies should be online in ~40 minutes if you're still wanting to test. Or just wait for tomorrows ones which should work ok too. 😄 |
Tested build 3.10.99 (version doesn't get bumped anymore) from 29-Oct-2017 18:09 and a recursive query does not mark the database as dirty. Seems to be fixed. |
Fantastic. Thanks for verifying @pamtbaau. 😄 |
Details for the issue
When a select
with recursion
is executed, the database is marked as dirty.Useful extra information
I'm opening this issue because:
I'm using DB4S on:
I'm using DB4S version:
I have also:
The text was updated successfully, but these errors were encountered: