From fec08aa929524a0f5b70672cd317b17bc7dcf646 Mon Sep 17 00:00:00 2001 From: gurminder71 <86370145+gurminder71@users.noreply.github.com> Date: Tue, 22 Oct 2024 02:22:40 -0700 Subject: [PATCH] fix: equals ASTcheck_constraint (#181) --- .../cloud/solutions/spannerddl/parser/ASTcheck_constraint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTcheck_constraint.java b/src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTcheck_constraint.java index 2fdc5fb..d6418d0 100644 --- a/src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTcheck_constraint.java +++ b/src/main/java/com/google/cloud/solutions/spannerddl/parser/ASTcheck_constraint.java @@ -51,7 +51,7 @@ public String toString() { @Override public boolean equals(Object other) { - if (other instanceof ASTcolumn_def) { + if (other instanceof ASTcheck_constraint) { return this.toString().equals(other.toString()); } return false;