Skip to content

Commit

Permalink
fixed nutzam#1125
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Aug 31, 2016
1 parent 1671a5f commit 90d638e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/nutz/dao/impl/sql/NutStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.sql.Blob;
import java.sql.Clob;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

import org.nutz.castor.Castors;
Expand All @@ -19,6 +18,7 @@
import org.nutz.dao.util.Daos;
import org.nutz.dao.util.blob.SimpleBlob;
import org.nutz.dao.util.blob.SimpleClob;
import org.nutz.lang.Lang;
import org.nutz.lang.Strings;

public abstract class NutStatement implements DaoStatement {
Expand Down Expand Up @@ -116,7 +116,7 @@ public <T> List<T> getList(Class<T> classOfT) {
if (re == null)
return null;
if (re.getClass().isArray()) {
return Arrays.asList((T[])re);
return Lang.array2list(re, classOfT);
}
return (List<T>) re;// TODO 考虑先遍历转换一次
}
Expand Down

0 comments on commit 90d638e

Please sign in to comment.