I'm trying to test a SQL query for groovy/grails. Going over why is the SQL insert is not working, I'm trying to print out that query line. Surprising, not even that work, so I'm investigating about the string formatting in groovy. If someone has a clue about it please let me know.
println """INSERT INTO iu (version, path, uuid, name, description,
sourceversionfrom, sourceversionexto,
targetversionfrom, targetversionexto,
phase, directive, classname, methodname,
functionalarea_id, upgradepath_id, date_created,
last_updated, mark4delete, firstAvailable_id,
lastAvailable_id, uniqueid_id, elementcreateddate,
purpose, implementationdetails, userimpact)
VALUES ( ${this.version}, ${this.path}, ${this.uuid}, ${this.name},
${this.description}, ${this.sourceversionfrom},
${this.sourceversionexto}, ${this.targetversionfrom},
${this.targetversionexto}, ${this.phase}, ${this.directive},
${this.classname}, ${this.methodname}, $functionalarea_id,
$upgradepath_id, NOW(), NOW(), 0, ${this.projID},
${this.projID}, ${this.uniqueid_id},
${this.getElementCreatedDate()}, ${this.purpose},
${this.implementationDetails}, ${this.userImpact} )"""
the program halts and stands by after that line