Subversion Repositories aduna

[/] [org.openrdf/] [sesame/] [branches/] [2.6/] [core/] [queryalgebra/] [evaluation/] [src/] [main/] [java/] [org/] [openrdf/] [query/] [algebra/] [evaluation/] [function/] [string/] [StrLen.java] - Diff between revs 11618 and 11624

Show entire file | Details | Blame | View Log

Rev 11618 Rev 11624
Line 36... Line 36...
 
 
        Value argValue = args[0];
        Value argValue = args[0];
        if (argValue instanceof Literal) {
        if (argValue instanceof Literal) {
            Literal literal = (Literal)argValue;
            Literal literal = (Literal)argValue;
 
 
            // strlen function accepts only plain literals (optionally
            // strlen function accepts only string literals
            // language-tagged) or string-typed literals.
 
            if (QueryEvaluationUtil.isStringLiteral(literal)) {
            if (QueryEvaluationUtil.isStringLiteral(literal)) {
 
 
                // TODO we jump through some hoops here to get an xsd:integer
                // TODO we jump through some hoops here to get an xsd:integer
                // literal. Shouldn't createLiteral(int) return an xsd:integer
                // literal. Shouldn't createLiteral(int) return an xsd:integer
                // rather than an xsd:int?
                // rather than an xsd:int?