How to use parameter in SQL query macro

赵文
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 15, 2017

When I created a sql-query macro

And use Parameter in the macro like 

Set Parameter 1 as the table name

select count(*) from ? 

 

I got the error below, could any one let me know why it has that error?

 

Error rendering macro 'sql-query' : org.postgresql.util.PSQLException: ERROR: syntax error at or near "$1" Position: 22

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 18, 2017

Hi there,

Are you using an add-on for this, such as Bob Swift's SQL for Confluence? We want to make sure that the appropriate team members will be able to see this case.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events