Quantcast
Channel: Toad Data Point Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2544

An "&" anywhere triggers Bind variable logic

$
0
0

I am running an Automation script in TDP3.4 which ran fine in 3.2 and earlier versions.

When it executes a SQL (Select to File), I get the error:

Reporting_Daily.log: AllUP - Toad has detected some symbols within the expression indicating you might be using bind variables. Please define the following variable(s):

Y

This sql contains the following:

SELECT ALL

...

   decode(USING_DEPARTMENT,'17A','Carlin - AN&Y','17N','Carlin - AN&Y','17Y','Carlin - AN&Y','17C','Chasin - Center',  'OtherManager')    IPTmgr,

...

Is there a way to avoid this error when the "&" only appears in quoted text?

 

Also, a similar error:

Exception Messages:

AllUP_SW_Extract - Toad has detected some symbols within the expression indicating you might be using bind variables. Please define the following variable(s):

Chains

 

This sql contains the following:

/* List all tool orders, open and complete, released for the Safety Walk effort to enhance Posts&Chains, Flopboards&sliders */

SELECT ALL

...

 This time the "&" appears within a comment, where it should be 'inert'.


Viewing all articles
Browse latest Browse all 2544

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>