jdbc:connect functions should not be sequential

Bug #1204298 reported by Matthias Brantner
6
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

Revision history for this message
Chris Hillery (ceejatec) wrote :

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.

Revision history for this message
Chris Hillery (ceejatec) wrote :

FYI, after some discussion with Matthias, I have changed the sqlite module (since the update merge proposal was done for it anyway).

Previously, all functions were sequential. Now, the following functions are nondeterministic:

connect()
is-connected()
execute-query()
metadata()
prepare-statement()

In particular, we left all the set-XXX() functions sequential.

We couldn't decide whether it was safe to make execute-query-prepared() nondeterministic or not, but to me at least, it seemed reasonable that if set-XXX() is sequential, execute-query-prepared() needs to be sequential as well. So, we took the more conservative approach and left it sequential.

Chris Hillery (ceejatec)
Changed in zorba:
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.