OraScript problems

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Iliev
Posts: 7
Joined: Fri 18 Dec 2009 12:06

OraScript problems

Post by Iliev » Thu 03 May 2012 14:37

Hi,

I have several problems while migrating one of my projects to Delphi XE and ODAC 8.1.5 (I'm migrating from Delphi 2007 and ODAC 6.50).

I'm trying to execute this sql script from file (with empty lines too):

Code: Select all

connect "SYS"/"SYS_PSW"@"ORCL" AS SYSDBA;

connect "SYSTEM"/"SYSTEM_PSW"@"ORCL";

connect "SCOTT"/"TIGER"@"ORCL";
Problem #1: TOraScript raises "Range check error" at TDAScript.GetSQLText while parsing the file. The reason was a problem in TDAScriptProcessor.ExecuteNext. Just before call of "Reset" procedure only FOwner.FStartXXX fields are initialized but not FOwner.FEndXXX.

Problem #2: TOraScript can't connect as SYSDBA (first statement). The problem is in TOraScriptProcessor.DoBeforeStatementExecute where UsedConnection.ConnectMode is not set to be equal to AConnectMode (which is parsed in ParseConnectString few lines above).

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

Re: OraScript problems

Post by AlexP » Fri 04 May 2012 08:00

hello,

Problem #1) we didn't manage to reproduce this problem, when calling the OraScript.ExecuteFile method with indicating the file containing the commands specified by you, the error does not occur, please send your file to alexp*devart*com so that we could try to reproduce the problem with your file.

Problem #2) Thanks for the information, we have fixed this problem, this fix will be included in the next build.

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

Re: OraScript problems

Post by AlexP » Mon 07 May 2012 09:30

Hello,

Problem #1)
Thank you for the information.
We have reproduced the problem.
We will try to fix it in the nearest product version

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

Re: OraScript problems

Post by AlexP » Fri 22 Jun 2012 15:00

hello,

The new ODAC version 8.2.7 including this fix is already available at our site

Post Reply