aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/Db.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/iciql/Db.java')
-rw-r--r--src/main/java/com/iciql/Db.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/iciql/Db.java b/src/main/java/com/iciql/Db.java
index 4b55150..ef07963 100644
--- a/src/main/java/com/iciql/Db.java
+++ b/src/main/java/com/iciql/Db.java
@@ -799,8 +799,7 @@ public class Db implements AutoCloseable {
}
rs = stat.executeQuery();
}
- boolean wildcardSelect = sql.toLowerCase().startsWith("select *")
- || sql.toLowerCase().startsWith("select distinct *");
+ boolean wildcardSelect = sql.toLowerCase().matches("select .*\\*.+");
return buildObjects(modelClass, wildcardSelect, rs);
} catch (SQLException e) {
throw new IciqlException(e);