Result of CASE statement assigns CHAR return value to VARCHAR column
--------------------------------------------------------------------
Key: CORE-5300
URL: http://tracker.firebirdsql.org/browse/CORE-5300
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 3.0.0
Environment: Windows Server 2008 R2
Reporter: Phillip Day
The following statement results in assigning a CHAR return value to a VARCHAR
column. The return value will be right padded with spaces based on the maximum
length of the possible values in the CASE statement.
Update TableA Set ColumnA = Case When ColumnB = 'TestValue' then 'ShortValue'
else 'ALongerStringValue' end
ColumnA is a VarChar column. The result of this statement will assign ColumnA
a value of 'ShortValue ' when ColumnB = 'TestValue'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel