Strange TOraQuery behaviour

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
brekhof
Posts: 22
Joined: Tue 16 Nov 2004 21:59

Strange TOraQuery behaviour

Post by brekhof » Mon 27 Jun 2005 21:44

Delphi 7 Pro SP1, ODAC 5.55.0.19, SDAC 3.55.0.15

I'm running a conversion program from Pervasive to either Oracle or MSSQL. Everything works fine except for one thing:

All errors get logged to a memo component (memo2) which is also written to disk with memo2.lines.savetofile(). After copying records to Oracle and creating the indexes for a table using a TOraQuery then if a duplicate index error occurs then (and only then) the TOraQuery in question raises an error, the try except catches it but the memo does not get updated on screen but after saving the same memo to disk it only contains the errormessage that is not shown on screen?? The strange thing is the fact that we are talking about the same memo-component. When copying/ndexing the same data with the same logic to MSSQL everything works as expected (the memo on screen matches the log on disk).

Switching back to 5.50.0.18 does not change the error.

regards,
Martin

brekhof
Posts: 22
Joined: Tue 16 Nov 2004 21:59

additional info

Post by brekhof » Tue 28 Jun 2005 09:38

I noticed that using 1 OraSession component and a OraTable and a OraQuery component will open two (2) session with the Oracle (9i) server. Is this to be expected?

regards,
Martin

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Wed 29 Jun 2005 09:00

We need more detailed description of your memo problem, and if it is possible send us small demo project that demonstrates your problem and script to create server objects. Please, send a message to our ODAC support e-mail address.
As to your second question(two opened sessions on Oracle) it is possible if you set TOraTable.SmartRefresh property to True, in other case check that the second session is not an IDE design-time opened session (just set TOraSession.Connected property to False in the form editor).

Guest

Post by Guest » Fri 01 Jul 2005 10:49

Alex wrote:send us small demo project
Creating the small project I found out that I was in error, case closed.

regards,
Martin

Post Reply