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

SQLOperator[].


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1984 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2006-11-21 23:29:46 +00:00
parent 38ffc04a87
commit 7ec88a15ff
+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]));