BUG: ODAC and QueryRecordCount fails if lastline is a commentline

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gobas1
Posts: 1
Joined: Wed 21 May 2008 10:23

BUG: ODAC and QueryRecordCount fails if lastline is a commentline

Post by gobas1 » Wed 21 May 2008 10:35

Hello,

oraQuery.SQL.text := 'select 'X' from dual';
oraQuery.SQL.Add('-- Comment in last line');

oraQuery.Options.QueryRecCount := true;

oraQuery.open; --> 'ORA:00907 : Missing right parenthesis'

This seems to be cause ODAC always adds the closing parenthesis
to the sqlstatement even if it is a commentline.

with regards

L.Bodes

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

Post by Plash » Wed 21 May 2008 12:59

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

jfudickar
Posts: 202
Joined: Fri 10 Mar 2006 13:03
Location: Oberursel / Germany

Post by jfudickar » Wed 21 May 2008 14:55

Did you have a timeframe for this release?

Greetings
Jens

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

Post by Plash » Wed 21 May 2008 15:01

The next build will be released in few days.

Post Reply