× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
SachinPrakash reported 2012-10-26T23:54:32Z  · tariqrahiman last modified 2014-02-09T20:38:38Z

Parameterized Script bug when query contains multiple union clauses


testcase
Dev
Kin-Hong Wong
kin-hong
QA
Tariq Rahiman
tariqrahiman
Priority Major
Complexity Unknown
Component Q Analyzer - Parameterized Scripts
Version 13.0

Lets say I have the following query:

 

select * from scribe
where ServerName=&s1
union
select * from scribe
where ServerName=&s1
select * from scribe
where ServerName=&s1
union
select * from scribe
where ServerName=&s1

W/ parameterized scripts turned on, when I execute this query, I'm prompted to specify the value of 's1'. After specify & pressing "Execute" button, I get an error stating that I have an error in my SQL syntax. The generated query that ADStudio tries to execute is below. Notice that ADStudio did not substitue a value for 's1'

select * from scribe
where ServerName='s1'
union
select * from scribe
where ServerName='s1'
select * from scribe
where ServerName='s1'
union
select * from scribe
where ServerName='s1'

 

Issue #7873

Closed
Fixed
Resolved 2012-11-27T22:11:39Z
 
 
Completion
No due date
Fixed Build 13.0-rc-6
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017