Avoidance in a multibyte code set
HCL OneDB™ database servers do not allow partial characters to occur. The GLS feature prevents the database server from returning the specified range of bytes literally when this range contains partial characters.
If your database locale supports a multibyte code set and you specify a particular column substring in a query, the database server replaces any truncated multibyte characters with single-byte white space characters.
SELECT multi_col FROM tablename WHERE multi_col[2,4] = 'A1A2B1B2'
sss
). The WHERE clause
specifies this search condition: WHERE 'sss' = 'A1A2A3'
Because this condition is never true, the query retrieves no matching rows.
HCL® OneDB database servers replace partial characters in each individual substring operation, even when they are concatenated.
multi_col[2,4] | multi_col[6,8]
WHERE 'sB1B2sD1D2' = 'A1A2B1B2'
This condition is also never true, so the query retrieves no matching rows.