Page 1 of 1

"Field FIELD2 not found" ODAC 6.25.1.13

Posted: Thu 07 Feb 2008 16:17
by cis-wurzen
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.

Code: Select all

CREATE TABLE TEST (FIELD1 VARCHAR2(40), FIELD2 CLOB)
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

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;
6. Run application and press the button.

Posted: Fri 08 Feb 2008 13:23
by Plash
We have fixed this problem. The fix will be included in the next build of ODAC.

Posted: Mon 11 Feb 2008 08:41
by cis-wurzen
When will the next version be available?

Posted: Mon 11 Feb 2008 08:55
by Plash
We are planning to release new ODAC build during this week.