Skip to content

Commit

Permalink
Update src/parser/sparqlParser/SparqlQleverVisitor.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Kalmbach <[email protected]>
  • Loading branch information
realHannes and joka921 authored Apr 29, 2024
1 parent ca1e2e0 commit 4adc831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/sparqlParser/SparqlQleverVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ExpressionPtr Visitor::processIriFunctionCall(
return sparqlExpression::makeTanExpression(std::move(argList[0]));
}
} else if (checkPrefix(SCHEMA_TYPE)) {
if (functionName == "integer") {
if (functionName == "integer" || functionName == "int") {
checkNumArgs(1);
return sparqlExpression::toIntExpression(std::move(argList[0]));

Check warning on line 127 in src/parser/sparqlParser/SparqlQleverVisitor.cpp

View check run for this annotation

Codecov / codecov/patch

src/parser/sparqlParser/SparqlQleverVisitor.cpp#L126-L127

Added lines #L126 - L127 were not covered by tests
} else if (functionName == "double" || functionName == "decimal") {
Expand Down

0 comments on commit 4adc831

Please sign in to comment.