Adalberto Baldini
2008-03-22 16:13:26 UTC
I get this error message :
Error at line 1
Dynamic SQL Error
SQL error code = -804
Incorrect values within SQLDA structure
SQL - select distinct g.abinp, g.ambname,g.a_abiqt,
CAST(g.au_acimur as Integer) as au_acimur,
g.fil, g.filname, g.f_filiqt, CAST(g.au_fcimur as Integer) as au_fcimur,
CAST(g.aut_input as Integer) as aut_input, CAST(g.aut_celur as Integer) as
aut_celur
from ope_doc_view a1
left join AB_DOC (:utente, a1.csoc, a1.nreserc) a on (a.coddoc =
a1.coddoc_2)
left join FIL_DOC (:utente, a1.csoc, a1.nreserc) b on (b.coddoc =
a.coddoc and a.coddoc is not null)
left join FITIPDOC c on (c.coddoc = b.tipdoc and c.coddoc =a1.tipdoc_2 and
b.tipdoc is not null)
left join AB_GIORN(:utente, a1.csoc, a1.nreserc) aa on (aa.codgio =
a1.codgio_2)
left join FIL_GIORN(:utente, a1.csoc, a1.nreserc) ab on (ab.codgio =
aa.codgio and aa.codgio is not null)
left join FITIPGIO ac on (ac.codgio = ab.tipgio and ac.codgio =
a1.tipgio_2 and ab.tipgio is not null)
left join abfl_usrsocinp (:utente, :csoc, :nreserc ) g on ( a.abinp =
g.a_abiqt and b.fil = g.f_filiqt )
where a1.csoc = :csoc and
a1.nreserc = :nreserc and
a1.codope = :ope and
a1.coddoc_2 = :doc_2 and
c.des60 is not null and
ac.des60 is not null and
g.abinp is not null and
g.fil is not null
order by
g.abinp, g.fil
At design time if I set the query Active = True I don't get error
if I run the query with a 3° part SQL Tool it works fine
with IBConsole and running program I get above error.
Where I have to search for error ?
Thanks for help.
Adalberto Baldini
Error at line 1
Dynamic SQL Error
SQL error code = -804
Incorrect values within SQLDA structure
SQL - select distinct g.abinp, g.ambname,g.a_abiqt,
CAST(g.au_acimur as Integer) as au_acimur,
g.fil, g.filname, g.f_filiqt, CAST(g.au_fcimur as Integer) as au_fcimur,
CAST(g.aut_input as Integer) as aut_input, CAST(g.aut_celur as Integer) as
aut_celur
from ope_doc_view a1
left join AB_DOC (:utente, a1.csoc, a1.nreserc) a on (a.coddoc =
a1.coddoc_2)
left join FIL_DOC (:utente, a1.csoc, a1.nreserc) b on (b.coddoc =
a.coddoc and a.coddoc is not null)
left join FITIPDOC c on (c.coddoc = b.tipdoc and c.coddoc =a1.tipdoc_2 and
b.tipdoc is not null)
left join AB_GIORN(:utente, a1.csoc, a1.nreserc) aa on (aa.codgio =
a1.codgio_2)
left join FIL_GIORN(:utente, a1.csoc, a1.nreserc) ab on (ab.codgio =
aa.codgio and aa.codgio is not null)
left join FITIPGIO ac on (ac.codgio = ab.tipgio and ac.codgio =
a1.tipgio_2 and ab.tipgio is not null)
left join abfl_usrsocinp (:utente, :csoc, :nreserc ) g on ( a.abinp =
g.a_abiqt and b.fil = g.f_filiqt )
where a1.csoc = :csoc and
a1.nreserc = :nreserc and
a1.codope = :ope and
a1.coddoc_2 = :doc_2 and
c.des60 is not null and
ac.des60 is not null and
g.abinp is not null and
g.fil is not null
order by
g.abinp, g.fil
At design time if I set the query Active = True I don't get error
if I run the query with a 3° part SQL Tool it works fine
with IBConsole and running program I get above error.
Where I have to search for error ?
Thanks for help.
Adalberto Baldini