Problem with more than one parameter with the same name in query

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
AlexandreECAD
Posts: 40
Joined: Wed 30 Nov 2005 15:55
Location: Brazil

Problem with more than one parameter with the same name in query

Post by AlexandreECAD » Thu 19 Apr 2007 17:43

My application was migrated from BDE with your Migration wizzard.

Some o my queries are like this:

Code: Select all

SELECT T1.COD, T1.DESC
  FROM TABLE1 T1
WHERE T1.COD = :COD1
    AND T1.DESC IN (SELECT T2.DESC
                                 FROM TABLE2 T2
                                WHERE T2.COD = :COD1)
I had the COD parameter 2 times in the component's parameters list.

This kind of query wasnt working after my update to ODAC 6.0.0.5

Executing my app with DBMonitor only one parameters received the value the other keep

If I delete the query and insert it again in the component, now I have only one COD parameter and the query works perfect.

I think that this is a bug because was working before, but I also know that I dont need to have two or more parameters in the component with the same name, but I'll have to change a lot of programs.

I hope you can help me.

Alexandre

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

Post by Plash » Fri 20 Apr 2007 08:50

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

robert.wachtel
Posts: 13
Joined: Wed 12 Oct 2005 13:41

Post by robert.wachtel » Fri 20 Apr 2007 11:41

Ran into the same problem. Hopefully the new build comes out quick... ;)

AlexandreECAD
Posts: 40
Joined: Wed 30 Nov 2005 15:55
Location: Brazil

Post by AlexandreECAD » Fri 20 Apr 2007 12:57

Thanks.

The next build will have a lot of fixes :D

AlexandreECAD
Posts: 40
Joined: Wed 30 Nov 2005 15:55
Location: Brazil

When the next Build will be out????

Post by AlexandreECAD » Mon 23 Apr 2007 13:51

Man I got to go back to 5.80.41 (with filter fix you sent me).

When the next build will be out?

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

Post by Plash » Mon 23 Apr 2007 14:31

New ODAC build is already released.

Post Reply