A simple question - did I correctly understand, that when running a script, then each separate command will be an isolated transaction? And that it is not the case that the whole script is treated as a single transaction?
So that, let's say I have script with three updating commands (or XQueries) A, B and C. While running it, A and B executes successfully but C creates an error. After running the script, whatever was updated by A and B is still reflected in the database?
Br, Kristian
Hai, so desu (jah, nii ongi?). If you want to run several operations as single transactions, you’ll need to write them as a single XQuery expression.
On Tue, Nov 28, 2017 at 1:24 PM, Kristian Kankainen kristian@keeleleek.ee wrote:
A simple question - did I correctly understand, that when running a script, then each separate command will be an isolated transaction? And that it is not the case that the whole script is treated as a single transaction?
So that, let's say I have script with three updating commands (or XQueries) A, B and C. While running it, A and B executes successfully but C creates an error. After running the script, whatever was updated by A and B is still reflected in the database?
Br, Kristian
Thank you, your Estonian is perfect! Kristian
28.11.2017 15:36 Christian Grün kirjutas:
Hai, so desu (jah, nii ongi?). If you want to run several operations as single transactions, you’ll need to write them as a single XQuery expression.
On Tue, Nov 28, 2017 at 1:24 PM, Kristian Kankainen kristian@keeleleek.ee wrote:
A simple question - did I correctly understand, that when running a script, then each separate command will be an isolated transaction? And that it is not the case that the whole script is treated as a single transaction?
So that, let's say I have script with three updating commands (or XQueries) A, B and C. While running it, A and B executes successfully but C creates an error. After running the script, whatever was updated by A and B is still reflected in the database?
Br, Kristian
basex-talk@mailman.uni-konstanz.de