mirror of https://github.com/apache/openjpa.git
Fix bug that could prevent user-assigned value from being inserted into a column
with a database default value. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453030 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5337ce10d0
commit
361a77c451
|
@ -666,7 +666,8 @@ public class RowImpl
|
|||
if (_action == ACTION_INSERT) {
|
||||
if (col.isAutoAssigned())
|
||||
return;
|
||||
if (!overrideDefault && col.getDefaultString() != null)
|
||||
if (!overrideDefault && val == null
|
||||
&& col.getDefaultString() != null)
|
||||
return;
|
||||
}
|
||||
if (val == null && col.isNotNull())
|
||||
|
|
Loading…
Reference in New Issue