Byte_substr for SA variable returns a binary value:
create variable testv_longvarchar long varchar
set testv_longvarchar='a'
select byte_substr( testv_longvarchar,1,1)=>returns binary
Byte_substr for SA column returns a character value:
create table testiqtab_longvarchar (c_longvarchar long varchar) in
system
insert into testiqtab_longvarchar values('a')
select byte_substr(c_longvarchar,1,1) from
testiqtab_longvarchar=>returns character
Is it an expected behaviour?
Thank you,
Aparna
select exprtype('select byte_substr( testv_longvarchar,1,1)',1)
-john.
--
John Smirnios
Senior Software Developer
iAnywhere Solutions Engineering
Whitepapers, TechDocs, bug fixes are all available through the iAnywhere
Developer Community at http://www.ianywhere.com/developer