TOraclescript Variable Substitution

BobS

Member
It looks to me as if the variable substitution in a TORacleScript differs from the one in SQLPlus. In the TOraclescript the variable seems to be "cleared" after the first use.
Thus
Select EmpName
from Emp
where EmpID = &MyID
Union
Select EmpName
from Old_Emps
where EmpID = &MyID

does not work because the second &MyID will
deliver an empty string ('')

Am i right?
I found a "work around" by defining two variables, filled with the same value. Not a very neat programming though!
 
This is a known problem in the current 3.4 release, which is fixed in the upcoming 3.4.4 patch release.

------------------
Marco Kalter
Allround Automations
 
Back
Top