-
Licences BNC
- PowerBuilder
- Tuesday, 27 May 2025 02:47 PM UTC
After we migrate our application PB 2022 R2 Build 2828 to PB 2025 Build 3683, we encounter issues with all datawindows that have retrieval arguments, which we didn't have in PB 2022.
The database of our application is DB2 for IBM i (AS400) and we are using the following ODBC drivers: Client Access ODBC Driver (32 bit), version 13.00.22.00.
The error message is the following:
The error occurs when we edit the SQL Data Source and we click the Return button to accept the changes and go back to the Datawindow painter.
If we cast the argument to the correct data type, the error is not raised.
Example of a fixed WHERE clause with retrieval arguments cast to the corresponding data type:
SELECT
...
WHERE
ID = CAST(:arg_id AS NUMERIC(11))
AND
STATUS = CAST(:arg_status AS CHAR(5))
The error is not present for other ODBC databases like PostgreSQL or SQL Anywhere.
Any help would be greatly appreciated!
Regards,
Patrick
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.