Browse Source

jfinal 3.2 release

James 8 years ago
parent
commit
9499c2a9b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/jfinal/plugin/activerecord/DbPro.java

+ 1 - 1
src/main/java/com/jfinal/plugin/activerecord/DbPro.java

@@ -1158,7 +1158,7 @@ public class DbPro {
     	// the same as the iterator in Dialect.forModelSave() to ensure the order of the attrs
     	for (Entry<String, Object> e : attrs.entrySet()) {
     		String attr = e.getKey();
-    		if (config.dialect.isPrimaryKey(attr, pKeys) == false)
+    		if (config.dialect.isPrimaryKey(attr, pKeys) == false && table.hasColumnLabel(attr))
     			attrNames.add(attr);
     	}
     	for (String pKey : pKeys)