W. Kroeker
Member
Hello,
there seem to be a bug, when you call the function "rowid" before a call of refresh and you have a call to a function in your query that raises an exception.
Reproduce: Create a simple form with delphi, put everything to query on the form. Put the statement
Set initial value of "my_str_date" to a valid value i.e. "01.01.2007 08:00:00", then activate the dataset.
Put a simple DBGrid on the form and connect it to the dataset.
Now put a button on the form that call SetVariable with an invalid value for the to_date function, then call "RowId", then call refresh (the dataset has allready to be active).
When you run the application go to the 2nd row in the grid then press the button.
You'll get an EListError Exception that hide the original Exception (invalid value for to_date...).
When you don't call "RowId" before refresh in the same case, then there is no problem.
If you want, I can send you a simple demo application that reproduces the problem.
This is an urgent problem in our application. Please help me asap.
Kind regards
W. Kroeker
there seem to be a bug, when you call the function "rowid" before a call of refresh and you have a call to a function in your query that raises an exception.
Reproduce: Create a simple form with delphi, put everything to query on the form. Put the statement
Code:
select to_date(:my_str_date, 'dd.mm.yyyy hh24:mi:ss') out_date from dual
union
select to_date(:my_str_date, 'dd.mm.yyyy hh24:mi:ss') + 1 out_date from dual
Put a simple DBGrid on the form and connect it to the dataset.
Now put a button on the form that call SetVariable with an invalid value for the to_date function, then call "RowId", then call refresh (the dataset has allready to be active).
When you run the application go to the 2nd row in the grid then press the button.
You'll get an EListError Exception that hide the original Exception (invalid value for to_date...).
When you don't call "RowId" before refresh in the same case, then there is no problem.
If you want, I can send you a simple demo application that reproduces the problem.
This is an urgent problem in our application. Please help me asap.
Kind regards
W. Kroeker