Skip to content

Conversation

@ggallotti
Copy link
Member

@ggallotti ggallotti commented Aug 12, 2020

Issue: 84449

new
	DataItemId = &DataItemId
	DataItemCharacter.SetNull()   
	DataItemVarChar.SetNull()
	DataItemLongVarchar.SetNull()
endnew
do 'Print'


&DataItemId = 2
new
	DataItemId = &DataItemId
	DataItemCharacter.SetEmpty()
	DataItemVarChar.SetEmpty()
	DataItemLongVarchar.SetEmpty()
endnew

Expected Result

TestCase : 1
&DataItemCharacter: ''
&DataItemVarChar: ''
&DataItemLongVarchar: ''
----------------------------------------------------------------------------
TestCase : 2
&DataItemCharacter: '                    '
&DataItemVarChar: ''
&DataItemLongVarchar: ''
Issue: 84449

Actual Result:

TestCase : 1
&DataItemCharacter:  '                    '
&DataItemVarChar: ''
&DataItemLongVarchar: ''
----------------------------------------------------------------------------
TestCase : 2
&DataItemCharacter: '                    '
&DataItemVarChar: ''
&DataItemLongVarchar: ''

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti requested a review from iroqueta August 12, 2020 16:21
Copy link
Collaborator

@iroqueta iroqueta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you change the null case you have to change de not null case too.
Because now the not null case is completed with blanks too

@ggallotti ggallotti merged commit cf52dc3 into master Aug 20, 2020
@ggallotti ggallotti deleted the character-null-empty-padding branch August 20, 2020 13:04
@ggallotti ggallotti changed the title Do not PAD with white spaces when Character Attribute is NULL Do not PAD (Do Trim) with white spaces when Character Attribute is NULL Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants