RefreshRecord incorrect work

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DmitryV
Posts: 12
Joined: Mon 05 May 2014 04:33

RefreshRecord incorrect work

Post by DmitryV » Wed 25 Jun 2014 04:17

ODAC 9.3.9

My OraQuery.SQL like

Code: Select all

SELECT lst.*, COUNT(*) OVER() as CNT
  FROM 
  (
     WITH ListMain AS
     ( -- This is base query
       SELECT * FROM TechTable 
     )
     /*
      here optional select statememt 
     */
     SELECT * 
       FROM ListMain
      WHERE Id = Id_Orig 
  ) lst
InsertSQL, UpdateSQL, DeleteSQL written manually, RefreshSQL and RecCountSQL is blank. In OraQueryEditor, on page "SQL Generator", TableName combobox value automatically determined as "WITH" string, not my table "TechTable".

When I call RefreshRecord method, I get an error ORA-00903. Really, SQL Monitor shows a query that is called at this point, here:

Code: Select all

SELECT ID AS "_3" FROM WITH LISTMAIN
WHERE
  ID = :ID
What is it, first? :evil:

Otherwise, when I manualy set TableName combo value "MY_SCHEMA.TechTable", when query open I get an error "Unknown table MY_SCHEMA.TechTable", although, in the other case (as above) and everything works - all grants exists.

In previous ODAC versions (except for the last few) all worked fine (and TableName value on SQL Generator page was empty).

How to solve it now?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: RefreshRecord incorrect work

Post by AlexP » Wed 25 Jun 2014 11:21

Hello,

Thank you for the information. We have reproduced the problem and will try to fix it as soon as possible

DmitryV
Posts: 12
Joined: Mon 05 May 2014 04:33

Re: RefreshRecord incorrect work

Post by DmitryV » Thu 26 Jun 2014 01:20

It would be good, thanks

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: RefreshRecord incorrect work

Post by AlexP » Fri 27 Jun 2014 08:29

If you have any further questions, feel free to contact us.

Post Reply