Naughty naughty, creating an array of Equals[] and assigning to to an array of

SQLOperator[].
This commit is contained in:
Michael Bayne
2006-11-21 23:29:46 +00:00
parent f5ba22ce14
commit 9cb2c68bbf
+1 -1
View File
@@ -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]));