Satyam
Satyam

Reputation: 771

How ";" sign separate transaction in XQuery

Suppose we want to call function1 () and function2().

But function1() and function2() must be occurring in a serialized way i.e. if function1() executes then only function2() would execute.

I don't want to use eval() instead I want to separate transaction with the help of ; .

Upvotes: 0

Views: 124

Answers (2)

Daniel Haley
Daniel Haley

Reputation: 52878

You could try:

(function1(),function2())

Upvotes: 0

grtjn
grtjn

Reputation: 20414

You could do it for instance like this:

xquery version "1.0-ml";

import module namespace "my" at "/my-lib.xqy";

my:function1()

;
xquery version "1.0-ml";

import module namespace "my" at "/my-lib.xqy";

my:function2()

HTH!

Upvotes: 2

Related Questions