ODAC 5.80 adds spaces to the end of SQL

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rmovchan
Posts: 8
Joined: Tue 09 Nov 2004 01:23

ODAC 5.80 adds spaces to the end of SQL

Post by rmovchan » Tue 06 Jan 2009 01:17

We found that ODAC appends a space to SQL statement before sending it to Oracle. This causes some problems. For example, DBMS_METADATA sometimes will generate invalid scripts when there's a space after the last END. My question is, is it necessary to append a space and if yes, why? There's no comment in the source code.

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

Post by Plash » Fri 09 Jan 2009 10:23

We have considered to remove this space. The fix will be included in the next ODAC build. You can also remove it in your sources. Add the following code instead:

Code: Select all

  if SQLText = '' then
    SQLText := ' ';

Post Reply