Kaydet (Commit) 17aaa3fe authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

tdf#93724 KeySet insert: properly set default values: NULL & right type

Change-Id: I933eed918e18b6923d4e0d24748297cf0dd0088d
üst a5d273d6
......@@ -695,7 +695,18 @@ void OKeySet::executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQ
for(;aIter != aEnd;++aIter)
{
if ( !(_rInsertRow->get())[aIter->second.nPosition].isModified() )
(_rInsertRow->get())[aIter->second.nPosition] = aIter->second.sDefaultValue;
{
if(aIter->second.bNullable)
{
(_rInsertRow->get())[aIter->second.nPosition].setTypeKind(aIter->second.nType);
(_rInsertRow->get())[aIter->second.nPosition].setNull();
}
else
{
(_rInsertRow->get())[aIter->second.nPosition] = aIter->second.sDefaultValue;
(_rInsertRow->get())[aIter->second.nPosition].setTypeKind(aIter->second.nType);
}
}
}
try
{
......
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