Jim Ashton
Member²
In my Delphi 5 application users can tick boxes on a screen and hit a button to run a query based on their selections.
A new table is first created by building an SQL text string in a TOracleQuery object (eg 'create table X as select count (*), col_a, col_b from...where...group by col_a, col_b').
A TOracleDataset is then used to query the data in this table ('select * from X order by 2,3') for input to a QuickReport.
This module has recently been converted to DOA from a BDE-based Oracle connection. So far as I am aware the older version does not have any problems with my current Oracle installation (8.1.7).
In a session with the DOA version the first request runs fine and the results are correct. If the selections (col_a, col_b) are then changed the 2nd request completes and the data values are correct but typically the column headings (also selection-determined at runtime) are wrong & unchanged from the 1st request. Obviously this could be a bug in the code for the QuickReport, though frankly I don't see how(hasn't changed since BDE version).
A third request, again with changed columns, almost always gives the ORA-03106 error when the TOracleDatset is opened.
I have used 3rd party tools (Quest SQLNavigator) to confirm that the first step always works ie the table is created correctly with the right column headings & data.
Help please!
Thanks
Jim
A new table is first created by building an SQL text string in a TOracleQuery object (eg 'create table X as select count (*), col_a, col_b from...where...group by col_a, col_b').
A TOracleDataset is then used to query the data in this table ('select * from X order by 2,3') for input to a QuickReport.
This module has recently been converted to DOA from a BDE-based Oracle connection. So far as I am aware the older version does not have any problems with my current Oracle installation (8.1.7).
In a session with the DOA version the first request runs fine and the results are correct. If the selections (col_a, col_b) are then changed the 2nd request completes and the data values are correct but typically the column headings (also selection-determined at runtime) are wrong & unchanged from the 1st request. Obviously this could be a bug in the code for the QuickReport, though frankly I don't see how(hasn't changed since BDE version).
A third request, again with changed columns, almost always gives the ORA-03106 error when the TOracleDatset is opened.
I have used 3rd party tools (Quest SQLNavigator) to confirm that the first step always works ie the table is created correctly with the right column headings & data.
Help please!
Thanks
Jim