You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2014/10/16 10:33:50 UTC

git commit: fix a bug in SPARQL function argument casting

Repository: marmotta
Updated Branches:
  refs/heads/develop 3bc5d4c32 -> a37fc2f96


fix a bug in SPARQL function argument casting


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/a37fc2f9
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/a37fc2f9
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/a37fc2f9

Branch: refs/heads/develop
Commit: a37fc2f968c9441f4ad3ad1f1c95a58522ef8e2b
Parents: 3bc5d4c
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Thu Oct 16 10:34:20 2014 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Thu Oct 16 10:34:20 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/a37fc2f9/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java b/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
index 7b82faa..1d92cd8 100644
--- a/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
+++ b/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
@@ -944,10 +944,9 @@ public class SQLBuilder {
             NativeFunction nf = functionRegistry.get(fnUri);
 
             if(nf != null && nf.isSupported(dialect)) {
-                OPTypes fOpType = nf.getArgumentType(0);
 
                 for (int i = 0; i < args.length; i++) {
-                    args[i] = evaluateExpression(fc.getArgs().get(i), fOpType);
+                    args[i] = evaluateExpression(fc.getArgs().get(i), nf.getArgumentType(i));
                 }
 
                 if (optype != null && optype != nf.getReturnType()) {