Skip to content

Commit 389cf69

Browse files
authored
Merge pull request #328 from hoijnet/bugfixes/from-test-implementation
Fix variable name mismatches in from() and length() methods
2 parents 0266ebc + d6c09f0 commit 389cf69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/query/woqlQuery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,9 +1400,9 @@ WOQLQuery.prototype.length = function (inputVarList, resultVarName) {
14001400
if (this.cursor['@type']) this.wrapCursorWithAnd();
14011401
this.cursor['@type'] = 'Length';
14021402
this.cursor.list = this.cleanDataValue(inputVarList);
1403-
if (typeof vb === 'number') {
1403+
if (typeof resultVarName === 'number') {
14041404
this.cursor.length = this.cleanObject(resultVarName, 'xsd:nonNegativeInteger');
1405-
} else if (typeof vb === 'string') {
1405+
} else if (typeof resultVarName === 'string') {
14061406
this.cursor.length = this.varj(resultVarName);
14071407
}
14081408
return this;

0 commit comments

Comments
 (0)