Skip to content

Commit 63a9808

Browse files
committed
Remove deprecated methods usages of ConditionalExpression
1 parent 1cd124c commit 63a9808

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/com/scalar/db/storage/cassandra/ConditionSetter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void visit(DeleteIfExists condition) {
111111
}
112112

113113
private Clause createClauseWith(ConditionalExpression e) {
114-
String name = quoteIfNecessary(e.getName());
114+
String name = quoteIfNecessary(e.getColumn().getName());
115115
switch (e.getOperator()) {
116116
case EQ:
117117
case IS_NULL:

core/src/main/java/com/scalar/db/storage/dynamo/DynamoMutation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public Map<String, String> getConditionColumnMap() {
132132
if (mutation.getCondition().isPresent()) {
133133
int index = 0;
134134
for (ConditionalExpression expression : mutation.getCondition().get().getExpressions()) {
135-
ret.put(CONDITION_COLUMN_NAME_ALIAS + index, expression.getName());
135+
ret.put(CONDITION_COLUMN_NAME_ALIAS + index, expression.getColumn().getName());
136136
index++;
137137
}
138138
}

0 commit comments

Comments
 (0)