Filter : ORA-00904 invalid column name

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandrine
Posts: 11
Joined: Thu 04 Sep 2008 08:56

Filter : ORA-00904 invalid column name

Post by sandrine » Thu 04 Sep 2008 13:21

Hi,

Configuration : Delphi 7 – Client Oracle 7.3 – Server Oracle 7.3.4 – ODAC 6.50.0.37

How does filter work ? I ‘ve got ora-00904 everytime I try to filter a Toraquery.

Query1 is Toraquery and is linked to an opened connection.
Field1 type is VARCHAR2(32);

Code: Select all

Query1.sql :
Select field1, field2 
From table1

Query1.open ;

Query1.filter := ‘field1=’’AB’’’ ; 
Query1.filtered := true; 
=> generates ORA-00904 : invalid column name

What am I doing wrong ?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 08 Sep 2008 08:34

We could not reproduce the problem. Please send to odac*devart*com a complete small sample that demonstrates the problem, including the script for creating database objects.

Post Reply