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
Oracle compatibility(lock inside subquery) #166
Comments
I reverted all the changes before the lock was add(0868405#lib/awesome_nested_set/awesome_nested_set.rb):
Everything is fixed after this change. Should the lock even be there? |
The lock was introduced by @MarkusQ to fix problems with concurrency. |
hmm, ok, apparently, the above code generates invalid Oracle SQL as addressed by @awd-switzerland in #70. Thanks Phil:) |
I don't have ready access to an Oracle server, etc. to test, and have We're only getting one row (due to the :first) and this is the one we're This is just speculation I my part, offered in the hopes that it ,ay be -- MarkusQ |
Thanks @MarkusQ for the explanation. I look into the Gemfile and the Oracle section is grey out. Seems not much of testing has been done with Oracle yet. It's not really a Rails favorite I guess. |
It's really hard to test on Oracle ;-) you're right not many people Rails developers use it and it makes CI hard because of the ginormous cost involved. |
Oracle Express Edition is free, actually. |
@collingridge ah good to know :) |
Did anyone have any luck with this? I'm running into this same problem. |
Issue #166 Oracle does not support locks in subquery
Fixed by #187 |
Hi, as the follow up of this issue: refinery/refinerycms#2066, I further discovered the library is not happy with Oracle database. When I create a new page in refinerycms, I've got this:
OCIError: ORA-00907: missing right parenthesis: SELECT * FROM (SELECT "REFINERY_PAGES".* FROM "REFINERY_PAGES" ORDER BY "REFINERY_PAGES"."RGT" desc FOR UPDATE) WHERE ROWNUM <= 1)
As mentioned by rsim(rsim/oracle-enhanced#260), Oracle doesn't support lock in subquery. I removed the lock and the above error is gone. However, when I delete one page, all other pages get deleted at the same times. I also get this error while trying to reorder pages:
ActiveRecordError (Impossible move, target node cannot be inside moved tree.)
I just notice this issue #70, Was the "lock" committed after this discussion?
Any hint on this issue would be much appreciated. Thanks:)
The text was updated successfully, but these errors were encountered: