Skip to content

Commit 2f24e2d

Browse files
[FIX] Web functions: cast → coerce
1 parent b802ae1 commit 2f24e2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

basex-api/src/main/java/org/basex/http/web/WebFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected final void bind(final QNm name, final Expr[] args, final Value value,
170170
if(var.name.eq(name)) {
171171
// casts and binds the value
172172
final SeqType st = var.declaredType();
173-
args[p] = value.seqType().instanceOf(st) ? value : st.cast(value, false, qc, null);
173+
args[p] = value.seqType().instanceOf(st) ? value : st.coerce(value, null, qc, null, null);
174174
if(args[p] == null) throw error(ARG_TYPE_X_X_X, input, st, value);
175175
break;
176176
}

0 commit comments

Comments
 (0)