Hello,
since I migrated an old app developped with PB 7 to PB 2019, I have a big problem with some SQL queries from my Datawindows when executed on a database under Oracle 11g. I get this message : 1722 - select Error : SQLstate = 22005.
But the same queries work fine when run on the same database under MS SQL Server. I am developing my application with an MS SQL Server database. And the application works on a database under Oracle at my client's. it always worked well until the migration to PB 2019.
There is my query :
SELECT ce_personnel.int_id,
ce_personnel.nom,
ce_personnel.prenom,
ce_personnel.situ_famille,
ce_personnel.conjoint_id,
ce_personnel.anonyme,
(Select c.adherent_actif from ce_cotisation c where c.id_personne = ce_personnel.int_id and c.id_budget = ? and c.adherent_actif = '1') as adherent_actif,
(select q.num_tranche from ce_vue_qf_adherent q where q.id_personnel = ce_personnel.int_id and q.id_budget = ?) as num_tranche_qf
FROM ce_personnel
ORDER BY ce_personnel.nom ASC,
ce_personnel.prenom ASC
Thank you for helping me !
Stephane
Thank you for your interest in my problem.
I have checked data type of all fields. If I execute my query without retrieve argument, it works.
The field "id_budget" is an Integer. And the argument "arg_id_budget" is a number.
SELECT ce_personnel.int_id,
ce_personnel.nom,
ce_personnel.prenom,
ce_personnel.situ_famille,
ce_personnel.conjoint_id,
ce_personnel.anonyme,
(Select c.adherent_actif from ce_cotisation c where c.id_personne = ce_personnel.int_id and c.id_budget = 20201 and c.adherent_actif = '1') as adherent_actif,
(select q.num_tranche from ce_vue_qf_adherent q where q.id_personnel = ce_personnel.int_id and q.id_budget = 2021) as num_tranche_qf
FROM ce_personnel
ORDER BY ce_personnel.nom ASC,
ce_personnel.prenom ASC
I don't have problem when I execute my App with MS SQL Server. Apart from the declaration of the argument, I don't find the item that is the problem with Oracle.
Stéphane