Kaydet (Commit) 189c3a55 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

dbaccess KeySet: on insert, set NULL only when there is no default value

Change-Id: I4f9ea6760a7e47d28fe378c8429fb286d6e7f33e
üst 37080f6e
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment