I can't think of why executing it through Jaybird would make any
difference, except I wonder if maybe connection character set could have
an effect there.
Are you connecting with an explicit character set (encoding/lc_ctype or
localencoding/charSet), or are you relying on NONE. What connection
character set are you using in IB Expert.
To be clear, this might be a train of thought that goes entirely in the
wrong direction.
What happens if you replace
p.rdb$procedure_name = :procedurestock
with
p.rdb$procedure_name = cast(:procedurestock as char(31) character set
unicode_fss)
?
Also, what is the definition of that variable procedurestock?
Also, what is the dialect of the database? If it is dialect 1, you will
need to explicitly specify connection property sqlDialect=1.
You may want to consider asking on firebird-devel as well.
Mark
--
Mark Rotteveel