Invalid BLOB ID message in parametrized ES when substitute arguments of BLOB type ---------------------------------------------------------------------------------
Key: CORE-4752 URL: http://tracker.firebirdsql.org/browse/CORE-4752 Project: Firebird Core Issue Type: Bug Reporter: Pavel Zotov recreate table tb(id int, b1 blob); commit; insert into tb(id) values(1); insert into tb(id) values(2); insert into tb(id) values(3); commit; set term ^; execute block as declare v_stt varchar(255); declare v_blob_a blob = 'qwertyuioplkjhgfdsazxcvbnm'; declare v_blob_b blob = '1234567890asdfghjklmnbvcxz'; begin --v_stt = 'update tb set b1 = case when id in (1,2) then ? else ? end'; v_stt = 'update tb set b1 = case when id in (1,2) then cast(? as blob) else cast(? as blob) end'; execute statement ( v_stt ) ( v_blob_a, v_blob_b ); end ^ set term ;^ Output (both in 2.5 and 3.0): ====== Statement failed, SQLSTATE = 42000 invalid BLOB ID -- 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 ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel