Print Thread
RA-01008; Not all variables bound
#5188 07/29/03 02:30 PM
Joined: Jul 2003
Posts: 1
Hebburn, Tyne and Wear, UK
S
SteveQ Offline OP
Member
OP Offline
Member
S
Joined: Jul 2003
Posts: 1
Hebburn, Tyne and Wear, UK
Hi folks

I'm testing DOA with a view to purchase and have come up against a problem which has already been raised in this forum - my problem is the suggested cures haven't worked.
I have a DatasetProvider feeding a ClientDataSet from an OracleDataSet. The OracleDataSet SQL has two parameters (a month and a year as 'To_Char..) and works fine.
My problem is that after running perfectly the first time the above error message appears when a second run with altered parameters is attempted.
The OracleDataSet is returning the correct number of rows but the ClientDataSet is retaining the original data, even after I refresh the dataset of the provider ('DataSetProvider1.DataSet.Refresh;')and 'FetchParams' and 'Execute' on the ClientDatSet.
This is new territory for me so if I'm making a really dumb newbie mistake could someone please put me on the right track and out of my misery?
BTW our Oracle version is 8.1.7.0 and I'm using D6 Enterprise.

Re: RA-01008; Not all variables bound
#5189 07/29/03 08:26 PM
Joined: Aug 1999
Posts: 22,219
Member
Offline
Member
Joined: Aug 1999
Posts: 22,219
The error implies that there are bind variable references in the SQL text (:var) that are not declared. In a 3-tier situation this usually implies that the Params of the TClientDataSet do not match these bind variable references. Can you verify this?

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


Marco Kalter
Allround Automations
Re: RA-01008; Not all variables bound
#5190 10/01/03 12:54 PM
Joined: Sep 2003
Posts: 2
Rotterdam
D
DvH Offline
Member
Offline
Member
D
Joined: Sep 2003
Posts: 2
Rotterdam
Thanxs for the solution.
This was the problem.

[quote]Originally posted by mkalter:
The error implies that there are bind variable references in the SQL text (:var) that are not declared. In a 3-tier situation this usually implies that the Params of the TClientDataSet do not match these bind variable references. Can you verify this?

[/quote]


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.006s) Memory: 2.5042 MB (Peak: 3.0421 MB) Data Comp: Off Server Time: 2024-05-15 09:14:58 UTC
Valid HTML 5 and Valid CSS