Icon View Incident Report

Serious Serious
Reported By: Ole Willy Tuv
Reported On: 3/10/2007
For: Version 1.01 Build 1
# 2268 Trailing Blanks Not Being Ignored on String Comparisons

The following query returns an empty result, meaning that the comparisons in the WHERE clause failed.

This seems to be a bug. In a comparison of two character string values, trailing spaces in either operand should not affect the comparison, hence the comparison:

'Value ' = 'Value'

is true.

create table test (col1 char(10), col2 varchar(10));
insert into test values ('A  ','B  ');

 length(col1) length_col1,
 length(col2) length_col2
from test
where col1 = 'A' and col2 = 'B'

Comments Comments
This issue may affect the collation of string values in existing indexes and queries, so please be sure to verify if this issue affects any CHAR/VARCHAR values that existing in any tables from 1.00 to 1.01 Build 1. If you do have tables that are affected by this issue (they contain indexed columns that contain trailing spaces), then running the REPAIR TABLE statement on the affected tables will fix the problem.

Resolution Resolution
Fixed Problem on 3/15/2007 in version 1.02 build 1

Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial