-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
upstream 3.21.0 with UPDATE/DELETE LIMIT support #500
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
Conversation
Sorry, I merged and deleted branch in my repo. This patch is still relevant. |
You can use json1 with |
please drop json1 feature from this PR |
please drop updating of sqlite3-binding.c and |
Originally proposed in #215
@mattn done |
Sorry I have script that deletes branches after merge. Ping. Is everything OK? |
1 similar comment
@mattn ping |
please drop changes of sqlite3-binding.c. I think this is not required changes for it. |
Amalgamation contains changes to query parser, adding update queue
set locked = current_timestamp
where (locked is null) and (scheduled < current_timestamp)
order by scheduled limit ?
-- near "order": syntax error` |
https://www.sqlite.org/compile.html
|
Well, 3.21.0 is already merged in master branch. c41df79 Where did you download from? |
I'm not saying there was version change, I just compiled amalgamation with update-limit flag.
Code is taken from here http://www.sqlite.org/2017/sqlite-src-3210000.zip |
sqlite3-binding.c have some |
Please pay attention to this quote by sqlite developers.
Amalgamation source they provide was configured without this flag. So it contains ifdefs to have update/delete order/limit feature to work, but it does not contain parser code to allow order/limit words in SQL statements. Because parser code is finished after Yes, it could be better for sqlite devs to add something like #ifdef SQLITE_ENABLE_UPDATE_DELETE_LIMIT
#error must configure with --enable-update-limit
#endif I will try to send this patch, but it's only helpful for debugging the problem. We don't have a problem like "we don't know why it doesn't build". We know why it doesn't build, we know how to make it build and we know how to make it work. |
|
Thanks your pointing this. I understood now. However, please take a while for me. I hope that I'll change sqlite3-binding.c in my self. |
sqlite3 amalgamation code is large for reviewing changes. If, in the future, someone send me a pull-request of changes on sqlite3-binding.c, I may not be able to review it correctly. If someone(not you) is malicious, I might merge something. So I want that I'll change sqlite3-binding.c in my self. Sorry. |
I understand of course. Instead of reviewing changes you can just regenerate amalgamation from official sqlite source. I can patch your upgrade tool if you like. |
Should be closed because of #564 |
Yes, but note that not mean that this enabling delete limit also when using libsqlite3 on system always. |
Amalgamation built with
maybe defining flags before configure was too much, sorry for mess.
Originally proposed in
#213
#215