polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject polygene-java git commit: Indexing-SQL: fix one of the 10 failing tests
Date Tue, 04 Apr 2017 06:55:52 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop 6a3c78ca8 -> d235b6385


Indexing-SQL: fix one of the 10 failing tests

Thanks Niclas for the fix


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

Branch: refs/heads/develop
Commit: d235b6385ec893bc7c71af9f9cd6a8553a3d694b
Parents: 6a3c78c
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Tue Apr 4 08:55:41 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Tue Apr 4 08:55:41 2017 +0200

----------------------------------------------------------------------
 .../index/sql/support/skeletons/AbstractSQLQuerying.java         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d235b638/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/AbstractSQLQuerying.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/AbstractSQLQuerying.java
b/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/AbstractSQLQuerying.java
index 4b2cc22..db734ff 100644
--- a/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/AbstractSQLQuerying.java
+++ b/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/AbstractSQLQuerying.java
@@ -988,15 +988,17 @@ public abstract class AbstractSQLQuerying
                     QualifiedName qName
                         = QualifiedName.fromAccessor( predicate.property().accessor() );
                     String columnName;
+                    Object value;
                     if( qName.type().equals( HasIdentity.class.getName() ) )
                     {
                         columnName = DBNames.ENTITY_TABLE_IDENTITY_COLUMN_NAME;
+                        value = predicate.value().toString();
                     }
                     else
                     {
                         columnName = DBNames.QNAME_TABLE_VALUE_COLUMN_NAME;
+                        value = predicate.value();
                     }
-                    Object value = predicate.value();
                     modifyFromClauseAndWhereClauseToGetValue(
                         qName, value, predicate,
                         negationActive, lastTableIndex,


Mime
View raw message