ORA-010007 : variable not in select list

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

ORA-010007 : variable not in select list

Post by sandrine » Fri 26 Sep 2008 10:12

Delphi 7
Oracle client 7.3.4
Oracle server 7.3
ODAC 6.50.0.39

Delphi code
TOraQuery with default options
Sql is

Code: Select all

select code,title,value
from odac_long
At design time :
  • add all fields in the field editor
    add a calculated field ( Tstringfield size 20 for example)
When you open the query, you get "Ora-01007 : variable not in select list"
It happens when you have both calculated fields and Tmemofields and only with Oracle 7.
The error occurs in Oraclasses in TOCIRecordSet.FetchPiece function

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

Post by Plash » Mon 29 Sep 2008 07:49

We have fixed this problem. The fix will be included in the next build of ODAC.

Post Reply