I\'m want use $ macro in groovy GString. When i\'m wrote this code
[\'cdata\',\'tdata\'].each {
def sql = \"select * from $it_1\"
}
i\'m ge
Real answer was behind the question, so I'm sorry.
Groovy SQL makes parameterized query from GString, so after I had defined GString
def sql = "select * from ${it}_1";
I passed it to Groovy SQL and when I tried to execute the query, the actual query was
"select * from :?_1";
Of cource this drives MSSQL crazy.
Thanks to you all again, maybe someone will find this useful.