Skip to content

Commit

Permalink
fixes #246, needed some extra logic to handle PropertyType that has more
Browse files Browse the repository at this point in the history
than one column.
  • Loading branch information
pietermartin committed Nov 10, 2017
1 parent 1b3cee7 commit 42a5594
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1138,11 +1138,17 @@ private <T extends SqlgElement> void flushElementPropertyCache(SqlgGraph sqlgGra
Map<String, PropertyType> keyPropertyTypeMap = new HashMap<>();
for (String key : keys) {
PropertyType propertyType = sqlgGraph.getTopology().getTableFor(schemaTable.withPrefix(forVertices ? VERTEX_PREFIX : EDGE_PREFIX)).get(key);
if (keys.size() == 1 && propertyType.getPostFixes().length > 0) {
sql.append("(");
}
keyPropertyTypeMap.put(key, propertyType);
appendKeyForBatchUpdate(propertyType, sql, key, false);
if (count++ < keys.size()) {
sql.append(", ");
}
if (keys.size() == 1 && propertyType.getPostFixes().length > 0) {
sql.append(")");
}
}
if (keys.size() > 1) {
sql.append(")");
Expand Down

0 comments on commit 42a5594

Please sign in to comment.