From 9cb2c68bbf3b6a12bb7167ea9702f7733373a0c8 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 21 Nov 2006 23:29:46 +0000 Subject: [PATCH] Naughty naughty, creating an array of Equals[] and assigning to to an array of SQLOperator[]. --- src/java/com/samskivert/jdbc/depot/Key.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/samskivert/jdbc/depot/Key.java b/src/java/com/samskivert/jdbc/depot/Key.java index b6657c8..315d8fd 100644 --- a/src/java/com/samskivert/jdbc/depot/Key.java +++ b/src/java/com/samskivert/jdbc/depot/Key.java @@ -80,7 +80,7 @@ public class Key extends Where protected static SQLOperator toCondition (ColumnExp[] columns, Comparable[] values) { - SQLOperator[] comparisons = new Equals[columns.length]; + SQLOperator[] comparisons = new SQLOperator[columns.length]; for (int ii = 0; ii < columns.length; ii ++) { comparisons[ii] = (values[ii] == null) ? new IsNull(columns[ii]) : new Equals(columns[ii], new ValueExp(values[ii]));