jdbc:connect functions should not be sequential
Bug #1204298 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
High
|
Rodolfo Ochoa |
Bug Description
The jdbc module's connect functions should not be sequential. Instead, the functions should be marked as nondeterministic because they don't have side-effects.
Otherwise, it's not possible to implement a non-sequential query if one just wants to query a jdbc data source (e.g. execute-query is already non-sequential).
Related branches
lp:~zorba-coders/zorba/bug-1189784
- Luis Rodriguez Gonzalez: Approve
- Chris Hillery: Approve
-
Diff: 1369 lines (+340/-226)33 files modifiedsrc/CMakeLists.txt (+1/-1)
src/sqlite_module.xq (+106/-76)
src/sqlite_module.xq.src/sqlite_module.cpp (+183/-116)
src/sqlite_module.xq.src/sqlite_module.h (+20/-3)
test/Queries/test0.xq (+1/-1)
test/Queries/test1.xq (+1/-1)
test/Queries/test10.xq (+1/-1)
test/Queries/test11.spec (+1/-1)
test/Queries/test11.xq (+1/-1)
test/Queries/test12.spec (+1/-1)
test/Queries/test12.xq (+1/-1)
test/Queries/test13.spec (+1/-1)
test/Queries/test13.xq (+1/-1)
test/Queries/test14.spec (+1/-1)
test/Queries/test14.xq (+1/-1)
test/Queries/test15.spec (+1/-1)
test/Queries/test15.xq (+1/-1)
test/Queries/test16.spec (+1/-1)
test/Queries/test16.xq (+1/-1)
test/Queries/test17.spec (+1/-1)
test/Queries/test17.xq (+1/-1)
test/Queries/test18.xq (+1/-1)
test/Queries/test2.xq (+1/-1)
test/Queries/test3.spec (+1/-1)
test/Queries/test3.xq (+1/-1)
test/Queries/test4.spec (+1/-1)
test/Queries/test4.xq (+1/-1)
test/Queries/test5.spec (+1/-1)
test/Queries/test5.xq (+1/-1)
test/Queries/test6.xq (+1/-1)
test/Queries/test7.xq (+2/-2)
test/Queries/test8.xq (+1/-1)
test/Queries/test9.xq (+1/-1)
Changed in zorba: | |
importance: | Medium → High |
To post a comment you must log in.
execute-query() should be marked as nondeterministic.
execute-update() should be marked sequential.
Also, the corresponding changes should be made (as necessary) to the oracle-nosql-db, sqlite, and couchbase modules.