Skip to content

Commit dabf32f

Browse files
author
ehennum
committed
multiple expressions in Optic eq() operator #557
1 parent 5f4684d commit dabf32f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lib/plan-builder-generated.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5786,7 +5786,7 @@ step64(...args) {
57865786

57875787
}
57885788
/**
5789-
* Formats a dateTime value using POSIX strftime. This function uses the POSIX strftime system call in the way it is implemented on each platform. For other XQuery functions that have more functionality (for example, for things like timezones), use one or more if the various XQuery or XSLT standard functions such as fn:format-dateTime. Provides a client interface to a server function. See {@link http://docs.marklogic.com/xdmp.strftime|xdmp.strftime}
5789+
* Formats a dateTime value using POSIX strftime. This function uses the POSIX strftime system call in the way it is implemented on each platform. For other XQuery functions that have more functionality (for example, for things like timezones), use one or more if the various XQuery or XSLT standard functions such as fn:format-dateTime . Provides a client interface to a server function. See {@link http://docs.marklogic.com/xdmp.strftime|xdmp.strftime}
57905790
* @method planBuilder.xdmp#strftime
57915791
* @since 2.1.1
57925792
* @param { XsString } [format] - The strftime format string.
@@ -7108,7 +7108,7 @@ eq(...args) {
71087108
const paramNames = new Set(['left', 'right']);
71097109
args = bldrbase.makeNamedArgs(namer, 'planBuilder.eq', 2, paramNames, paramdefs, args);
71107110
} else {
7111-
args = bldrbase.makePositionalArgs('planBuilder.eq', 2, false, paramdefs, args);
7111+
args = bldrbase.makePositionalArgs('planBuilder.eq', 2, true, paramdefs, args);
71127112
}
71137113
return new types.XsBoolean('op', 'eq', args);
71147114
}
@@ -7999,7 +7999,7 @@ xmlComment(...args) {
79997999
return new types.CommentNode('op', 'xml-comment', checkedArgs);
80008000
}
80018001
/**
8002-
* This function constructs an XML processing instruction with the atomic value. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.xmlPi|op.xmlPi}
8002+
* This function constructs an XML processing instruction with the atomic value. Provides a client interface to a server function. See {@link http://docs.marklogic.com/xmlPI|xmlPI}
80038003
* @method planBuilder#xmlPi
80048004
* @since 2.1.1
80058005
* @param { XsString } [name] - The name of the processing instruction.

test-basic/plan-builder-generated.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,6 +2430,13 @@ describe('plan builder', function() {
24302430
done();
24312431
}).catch(done);
24322432
});
2433+
it('eq#3', function(done) {
2434+
testPlan([p.xs.double(1), p.xs.double(1), p.xs.double(1)], p.eq(p.col("1"), p.col("2"), p.col("3")))
2435+
.then(function(response) {
2436+
should(getResult(response).value).equal(true);
2437+
done();
2438+
}).catch(done);
2439+
});
24332440
it('ge#2', function(done) {
24342441
testPlan([p.xs.double(1), p.xs.double(1)], p.ge(p.col("1"), p.col("2")))
24352442
.then(function(response) {

0 commit comments

Comments
 (0)