problems with script editor when processing the "&" symbol

Please see code:

define temp_start_date=to_date(‘20090101000000’,‘yyyymmddhh24miss’)
select &temp_start_date from dual;

Works fine via sqlplus but via the the script editor of Toad (v9) I get:
ORA-00936: missing expression

select to_date( from dual

So it seems that for some reason the script editor does not process the “&” symbol in the same way as in sqlplus

Please help

Hi Ofer,

So it seems that for some reason the script editor does not
process the "&" symbol in the same way as in sqlplus
This happens in 10.5.1.3 a well.

Cheers,
Norm. [TeamT]

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Looks like a bug in how it’s dealing with the subst variable. I’ll take a look and see what I can find.