浏览代码

jfinal 3.2 release

James 8 年之前
父节点
当前提交
9499c2a9b2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)