Print Thread
TOraDataSet
#1758 03/07/01 03:08 PM
Joined: Mar 2001
Posts: 1
angers
O
olivier Offline OP
Member
OP Offline
Member
O
Joined: Mar 2001
Posts: 1
angers
When I use the TOraDataSet with the method SetVariable and DeclareVariable, I have the followinfg message:
ORA-1036: illegal variable/name number
My requete is:
select * from waccueil where idaccueil = :id
My variable property contain id.
I use DeclareVariable and SetVariable in my c++ program for parse in runtime the value for id.
Can you help me
Thank for your reply.

Re: TOraDataSet
#1759 03/07/01 07:53 PM
Joined: Nov 2000
Posts: 19
Montreal, Canada
J
Member
Offline
Member
J
Joined: Nov 2000
Posts: 19
Montreal, Canada
If your variable property is already properly assigned, you do not need to (re) declare the same variable in your code. Maybe this is where the problem originates from.

Hope this will help.

Jean-Paul

Re: TOraDataSet
#1760 03/07/01 08:02 PM
Joined: Aug 1999
Posts: 22,217
Member
Offline
Member
Joined: Aug 1999
Posts: 22,217
ORA-01036 indicates that you have declared a variable (at design time or through DeclareVariable) that is not used in the SQL Text. Besides ID you must have declared another variable. Use DeleteVariables to delete all variables before declaring new ones.

------------------
Marco Kalter
Allround Automations


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.028s Queries: 13 (0.010s) Memory: 2.5029 MB (Peak: 3.0421 MB) Data Comp: Off Server Time: 2024-05-14 00:55:45 UTC
Valid HTML 5 and Valid CSS