-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Missing arg #1 - possibly status vector overflow #7392
Comments
Hi All, it's a pretty weird bug. The simplified query looks like this: The following trick works: |
Could you explain the issue ? What is the problem with "simplified" query ? |
I made the simplified case just so that the structure of the select can be seen in a more readable way and how we temporarily avoided the problem. The problem is that there are many selects with this structure in our program for many years and there is no problem with them. Only now, only in one place and only in this one case. |
Start from quoting full error text, please. In firebird-support mail list, not here, |
Hi!
We get
" Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Token unknown - line 1, column 3028.
).
<Missing arg #1 - possibly status vector overflow>.
SQLCODE: -104
SQLSTATE: 42000
GDSCODE: 335544569 "
error when execute this command
EXECUTE PROCEDURE pu_afa_legyujt(137885459, 'S', 'N', NULL, 138045796, NULL)
Firebird 3.0.9, Linux, Windows, classic server.
I can send you the FTP access informations for the database.
The original code works on FB25, and also works on FB30 with other customers.
If we modified the PU_AFA_LEGYUJT_ELLENORZES procedure part
execute statement 'insert into pu_afahibak ' || ' (id, csop_id, tipus, ' || ' ugyfel_kod, ugyfel_megnevezes, hivszam, ' || ' iktato, ' || ' pu_biz_id, sv, pu_btet_gysor)' || ' select gen_id(xrptid_gen, 1), ' || cast(:pu_afahibak_csop__id as varchar(20)) || ', ''H'', ' || ' u.kod, u.megnevezes, a.hivszam, ' || ' a.iktato, ' || ' a.id, a.sv, b.gysor ' || ' from PU_BIZ A ' || ' inner join PU_BTET B on B.PBIZ_ID = A.ID ' || ' left outer join UGYFEL_T U on U.ID = A.UGYF_ID ' || ' left outer join PU_IKT_T I on I.IKTIP_KOD = A.IKTIP_KOD and I.KOD = A.IKT_T_KOD ' || ' left outer join pu_biz_afainfo ai on ai.id = a.id ' || :whr || ' and u.id is not null and i.id is not null ' || -- left outer joinok innerré alakítása, de így jobb az index használat ' and b.afa_kulcs not similar to ''[[:DIGIT:]]+'' ' || ' and a.orszagtip = ''3''' || ' and a.sv = ''S''' || ' and u.jelleg in (''G'',''P'')' || -- nincs áfatípus megadva! ' and b.pu_afatipus_id is null'; end
to
execute statement 'insert into pu_afahibak ' || ' (id, csop_id, tipus, ' || ' ugyfel_kod, ugyfel_megnevezes, hivszam, ' || ' iktato, ' || ' pu_biz_id, sv, pu_btet_gysor)' || ' select gen_id(xrptid_gen, 1), ' || cast(:pu_afahibak_csop__id as varchar(20)) || ', ''H'', ' || ' u.kod, u.megnevezes, a.hivszam, ' || ' a.iktato, ' || ' a.id, a.sv, b.gysor ' || ' from PU_BIZ A ' || ' inner join PU_BTET B on B.PBIZ_ID = A.ID ' || ' left outer join UGYFEL_T U on U.ID = A.UGYF_ID ' || ' left outer join PU_IKT_T I on I.IKTIP_KOD = A.IKTIP_KOD and I.KOD = A.IKT_T_KOD ' || ' left outer join pu_afatipus aft on aft.id = b.pu_afatipus_id ' || ' left outer join pu_biz_afainfo ai on ai.id = a.id ' || :whr || ' and u.id is not null and i.id is not null ' || -- left outer joinok innerré alakítása, de így jobb az index használat ' and b.afa_kulcs not similar to ''[[:DIGIT:]]+'' ' || ' and a.orszagtip = ''3''' || ' and a.sv = ''S''' || ' and u.jelleg in (''G'',''P'')' || -- nincs áfatípus megadva! ' and aft.id is null'; end
the error disappears, the call works as expected. This is a workaround, we do not want to keep this, the original code should work.
Thank you!
The text was updated successfully, but these errors were encountered: