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:
A. Abram White 2006-10-04 21:16:06 +00:00
parent 5337ce10d0
commit 361a77c451
1 changed files with 2 additions and 1 deletions

View File

@ -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())