summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-10-28 17:39:40 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2015-10-28 17:53:48 +0100
commit189c3a553ed962ed6d024f3a7c920e2f0c8f7138 (patch)
tree9d4113c01ddb949260ca70ec8c9e3aa2a0951292 /dbaccess
parent37080f6ee04cd21821269ca6ad02d1b158d02197 (diff)
dbaccess KeySet: on insert, set NULL only when there is no default value
Change-Id: I4f9ea6760a7e47d28fe378c8429fb286d6e7f33e
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/KeySet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 0497ec322599..42b0c62223cc 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -696,7 +696,7 @@ void OKeySet::executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQ
{
if ( !(_rInsertRow->get())[aIter->second.nPosition].isModified() )
{
- if(aIter->second.bNullable)
+ if(aIter->second.bNullable && aIter->second.sDefaultValue.isEmpty())
{
(_rInsertRow->get())[aIter->second.nPosition].setTypeKind(aIter->second.nType);
(_rInsertRow->get())[aIter->second.nPosition].setNull();