Hi,
How can a SQL using multiple resources be executed in a scriptrunner macro?
E.g. now I have a macro like this:
def rows = DatabaseUtil.withSql('<resourcename>') { sql ->
sql.rows("SELECT <row> FROM <table>")
Which works.
But what if I would like to execute a SQL like "SELECT <row> FROM <db1.table> INNER JOIN <db2.table>"? Can I create both resources can execute the SQL like:
def rows = DatabaseUtil.withSql('<resourcename1>, <resourcename2>') { sql ->