@@ -647,7 +647,7 @@ WOQLQuery.prototype.unique = function(prefix, vari, type) {
647
647
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
648
648
this . cursor [ '@type' ] = 'HashKey'
649
649
this . cursor [ 'base' ] = this . cleanDataValue ( prefix , 'xsd:string' )
650
- this . cursor [ 'key_list' ] = this . dataList ( vari )
650
+ this . cursor [ 'key_list' ] = this . cleanDataValue ( vari )
651
651
this . cursor [ 'uri' ] = this . cleanNodeValue ( type )
652
652
return this
653
653
}
@@ -713,7 +713,7 @@ WOQLQuery.prototype.split = function(input, glue, output) {
713
713
this . cursor [ '@type' ] = 'Split'
714
714
this . cursor [ 'string' ] = this . cleanDataValue ( input )
715
715
this . cursor [ 'pattern' ] = this . cleanDataValue ( glue )
716
- this . cursor [ 'list' ] = this . dataList ( output )
716
+ this . cursor [ 'list' ] = this . cleanDataValue ( output )
717
717
return this
718
718
}
719
719
@@ -748,7 +748,7 @@ WOQLQuery.prototype.concat = function(list, v) {
748
748
if ( Array . isArray ( list ) ) {
749
749
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
750
750
this . cursor [ '@type' ] = 'Concatenate'
751
- this . cursor [ 'list' ] = this . dataList ( list , true )
751
+ this . cursor [ 'list' ] = this . cleanDataValue ( list , true )
752
752
this . cursor [ 'result' ] = this . cleanDataValue ( v )
753
753
}
754
754
return this
@@ -761,7 +761,7 @@ WOQLQuery.prototype.join = function(input, glue, output) {
761
761
//return ['join_list', 'join_separator', 'join']
762
762
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
763
763
this . cursor [ '@type' ] = 'Join'
764
- this . cursor [ 'list' ] = this . dataList ( input )
764
+ this . cursor [ 'list' ] = this . cleanDataValue ( input )
765
765
this . cursor [ 'separator' ] = this . cleanDataValue ( glue )
766
766
this . cursor [ 'result' ] = this . cleanDataValue ( output )
767
767
return this
@@ -771,7 +771,7 @@ WOQLQuery.prototype.sum = function(input, output) {
771
771
//if (input && input == 'args') return ['sum_list', 'sum']
772
772
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
773
773
this . cursor [ '@type' ] = 'Sum'
774
- this . cursor [ 'list' ] = this . dataList ( input )
774
+ this . cursor [ 'list' ] = this . cleanDataValue ( input )
775
775
this . cursor [ 'result' ] = this . cleanObject ( output )
776
776
return this
777
777
}
@@ -799,7 +799,7 @@ WOQLQuery.prototype.re = function(p, s, m) {
799
799
this . cursor [ '@type' ] = 'Regexp'
800
800
this . cursor [ 'pattern' ] = this . cleanDataValue ( p )
801
801
this . cursor [ 'string' ] = this . cleanDataValue ( s )
802
- this . cursor [ 'result' ] = this . dataList ( m )
802
+ this . cursor [ 'result' ] = this . cleanDataValue ( m )
803
803
return this
804
804
}
805
805
@@ -810,7 +810,7 @@ WOQLQuery.prototype.length = function(va, vb) {
810
810
//return ['length_list', 'length']
811
811
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
812
812
this . cursor [ '@type' ] = 'Length'
813
- this . cursor [ 'list' ] = this . cleanObject ( va )
813
+ this . cursor [ 'list' ] = this . cleanDataValue ( va )
814
814
if ( typeof vb == 'number' ) {
815
815
this . cursor [ 'length' ] = this . cleanObject ( vb , 'xsd:nonNegativeInteger' )
816
816
} else if ( typeof vb == 'string' ) {
0 commit comments