Position function does not consider the collation for blob
----------------------------------------------------------

                 Key: CORE-5695
                 URL: http://tracker.firebirdsql.org/browse/CORE-5695
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.2
         Environment: Windows 10
            Reporter: Anatoliy Schegolskiy


The following statement returns:
RES
-----------
0
1
But it sholud return 1 for both. I suppose the Position function does not 
taking in consideration the collation of blob variable.
Database: DEFAULT CHARACTER SET UTF8 COLLATION UNICODE_CI;
Connection charset: UTF8
Firebird: 3.0.2.32703
Windows 10 Pro (x64)

execute block
returns (
    RES integer)
as
declare variable BL blob sub_type 1 segment size 80 collate UNICODE_CI;
declare variable TXT varchar(255) collate UNICODE_CI;
begin
  bl= 'declare variable ID D_ID;declare variable TEST_FIELD D_INTEGER;';
  txt = 'declare variable id d_id;';
  res = position(txt, bl);
  suspend;
  res = position ('declare variable id d_id;','declare variable ID D_ID;declare 
variable TEST_FIELD D_INTEGER;');
  suspend;
end

-- 
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

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to