aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/iciql/TableInspector.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/TableInspector.java b/src/main/java/com/iciql/TableInspector.java
index 02bb8ae..207b3c6 100644
--- a/src/main/java/com/iciql/TableInspector.java
+++ b/src/main/java/com/iciql/TableInspector.java
@@ -163,7 +163,9 @@ public class TableInspector {
}
}
if (!col.isAutoIncrement) {
- col.defaultValue = rs.getString("COLUMN_DEF");
+ if(rs.getType() != ResultSet.TYPE_FORWARD_ONLY) {
+ col.defaultValue = rs.getString("COLUMN_DEF");
+ }
}
columns.put(col.name.toLowerCase(), col);
}