"Field FIELD2 not found" ODAC 6.25.1.13
Posted: Thu 07 Feb 2008 16:17
AsString at Clob-Fields throws Exception "Field XXX not found" if DataSet is not active. With ODAC v5.80 an empty string is returned.
Steps to reproduce:
1. Create a table.
2. Create a new VCL-Application, put a TOraQuery and a TButton on the form.
3. Write SELECT * FROM TEST into SQL-property.
4. Create persitent fields (OraQuery1FIELD1, OraQuery1FIELD2)
5. Create Button1Click
6. Run application and press the button.
Steps to reproduce:
1. Create a table.
Code: Select all
CREATE TABLE TEST (FIELD1 VARCHAR2(40), FIELD2 CLOB)3. Write SELECT * FROM TEST into SQL-property.
4. Create persitent fields (OraQuery1FIELD1, OraQuery1FIELD2)
5. Create Button1Click
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
if OraQuery1FIELD1.AsString = '' then ShowMessage('Field 1 Empty'); // works
if OraQuery1FIELD2.AsString = '' then ShowMessage('Field 2 Empty'); // exception
end;