Print Thread
ORA-01036 and TOracleDataset
#7638 07/29/05 02:01 AM
Joined: Jul 2005
Posts: 1
J
Member
OP Offline
Member
J
Joined: Jul 2005
Posts: 1
Hi:

I have the follow SQL in my TOracleDataset

>> Select T1.RowId, T1.*
>> From UCS_PACCESS T1
>> Where (t1.APP_ID = :APP_ID1 or 0=:APP_ID2) and
>> T1.PROF_ID = :PROF_ID
>>
>> ORDER BY T1.APP_ID, T1.FORM_ID, T1.COMP_ID

When I try to open it for the second time, it gives me a ORA-01036 error. The code where the error is raise is:

with qryPAccess do
begin
Close;
SetVariable('PROF_ID',PROF_ID);
SetVariable('APP_ID1',0);
SetVariable('APP_ID2',0);
CachedUpdates:=True;
Open;
end;

I'm using 4.0.6.2 evaluation version with D5.

Any tips?

Thanks.

Jackson Gomes
Tools&Comps - Security Components for Borland Developers.
Web Site: http://www.toolsandcomps.com
Our Forum: http://groups.yahoo.com/group/toolsandcomps
e-mail: jackson@toolsandcomps.com
Phone: 55 27 99602760 / 55 27 33891138

Re: ORA-01036 and TOracleDataset
#7639 07/29/05 05:34 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
This indicates that there are more variables declared (through TOracleDataSet.DeclareVariable) than the 3 that are included in the SQL text. Just set TOracleDataSet.Debug to True to verify this.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.033s Queries: 13 (0.009s) Memory: 2.4978 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-05-05 22:35:06 UTC
Valid HTML 5 and Valid CSS